You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.3 KiB

using Entity.DbModel.Station;
using log4net;
using Service.Cloud.Client;
using Service.Cloud.Msg.Cloud.Req;
using Service.Execute.Enum;
using Service.Execute.Model;
namespace Service.Execute.Api;
public class CloudApi
{
/// <summary>
/// 云平台车辆认证
/// </summary>
/// <param name="rfidReadModel"></param>
/// <returns></returns>
public static bool VehicleCheck(RfidReadModel rfidReadModel)
{
return true;
}
/// <summary>
/// 上报换电步序到云端
/// </summary>
/// <param name="swapOrder"></param>
/// <param name="state"></param>
public static void SendStateLog(SwapOrder swapOrder, InfoEnum.BusinessSwappingForCloudState state)
{
return;
}
/// <summary>
/// 上报tbox数据
/// </summary>
public static void UploadTBoxCarInfo(SwapOrder swapOrder, TboxCarInfoModel model)
{
return ;
}
/// <summary>
/// 云平台下发换电指令
/// </summary>
/// <returns></returns>
public static CarCanStart CarCanStart()
{
return CloudClientMgr.CloudClient.CarCanStart;
}
/// <summary>
/// 清除下发的换电指令
/// </summary>
/// <returns></returns>
public static bool ClearCarCanStartInfo()
{
CloudClientMgr.CloudClient.CarCanStart = null;
return true;
}
}