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.

50 lines
1.5 KiB

using Service.Cloud.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Service.Cloud.Msg.Host.Resp
{
/// <summary>
/// 2 换电站应答车辆开始换电指令
/// </summary>
public class CarCanStartRes : ICmd
{
/// <summary>
/// 接收结果
/// 0:成功 1失败
/// <see cref="Entity.Constant.CloudEnum.ResultInt"/>
/// </summary>
public int result { get; set; }
/// <summary>
/// 车辆所在的换电 通道
/// 从 1 开始递增, 0表示默认单仓单通道
/// </summary>
public int channel { get; set; }
/// <summary>
/// 订单号
/// 场站编码12 字节)+时间yyyyMMddHHmmss)14 位 + 2 位
/// </summary>
public string order { get; set; }
/// <summary>
/// 换电请求应答
/// 0 无 1 换电请求成功 2 换电请求失败3 取消换电请求成功 4 取消换电请求失败
/// <see cref="Entity.Constant.CloudEnum.AnsweringTheBatterySwapRequest"/>
/// </summary>
public int swapFlag { get; set; }
public string GetCmd()
{
return CloudConst.carCanStartRes;
}
public CarCanStartRes(int result, int channel, string order, int swapFlag)
{
this.result = result;
this.channel = channel;
this.order = order;
this.swapFlag = swapFlag;
}
}
}