|
|
|
@ -32,7 +32,7 @@ public class TBoxApi
|
|
|
|
|
tboxCarInfoModel = JsonConvert.DeserializeObject<TboxCarInfoModel>(s);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Log.Info($"TBoxApi GetCarInfo resp = {tboxCarInfoModel}");
|
|
|
|
|
Log.Info($"TBoxApi GetCarInfo resp = {JsonConvert.SerializeObject(tboxCarInfoModel)}");
|
|
|
|
|
return tboxCarInfoModel;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
@ -71,10 +71,10 @@ public class TBoxApi
|
|
|
|
|
if (!String.IsNullOrWhiteSpace(s))
|
|
|
|
|
{
|
|
|
|
|
tboxCarInfoModel = JsonConvert.DeserializeObject<TboxCarInfoModel>(s);
|
|
|
|
|
Log.Info($"IsConnected resp={tboxCarInfoModel}");
|
|
|
|
|
Log.Info($"IsConnected resp={JsonConvert.SerializeObject(tboxCarInfoModel)}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Log.Info($"GetCarInfo resp = {tboxCarInfoModel}");
|
|
|
|
|
Log.Info($"GetCarInfo resp = {JsonConvert.SerializeObject(tboxCarInfoModel)}");
|
|
|
|
|
return tboxCarInfoModel.Connected;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
@ -99,7 +99,7 @@ public class TBoxApi
|
|
|
|
|
bools.Add(unLockCar);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Log.Info($" TBoxApi end UnLockCarManyTimes carNo={carNo} time={_times} resp={JsonConvert.SerializeObject(bools)}");
|
|
|
|
|
Log.Info($" TBoxApi end UnLockCarManyTimes carNo={carNo} times={_times} resp={JsonConvert.SerializeObject(bools)}");
|
|
|
|
|
|
|
|
|
|
return bools.Select(i => i).Count() > _successTimes;
|
|
|
|
|
}
|
|
|
|
@ -117,7 +117,7 @@ public class TBoxApi
|
|
|
|
|
bools.Add(unLockCar);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Log.Info($" TBoxApi end LockCarManyTimes carNo={carNo} time={_times} resp={JsonConvert.SerializeObject(bools)}");
|
|
|
|
|
Log.Info($" TBoxApi end LockCarManyTimes carNo={carNo} times={_times} resp={JsonConvert.SerializeObject(bools)}");
|
|
|
|
|
|
|
|
|
|
return bools.Select(i => i).Count() > _successTimes;
|
|
|
|
|
}
|
|
|
|
@ -158,7 +158,7 @@ public class TBoxApi
|
|
|
|
|
tboxCarInfoModels = JsonConvert.DeserializeObject<List<TboxCarInfoModel>>(s);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Log.Info($"TBoxApi GetCarInfoList resp = {tboxCarInfoModels}");
|
|
|
|
|
Log.Info($"TBoxApi GetCarInfoList resp = {JsonConvert.SerializeObject(tboxCarInfoModels)}");
|
|
|
|
|
return tboxCarInfoModels;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|