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.

43 lines
1.2 KiB

using HybirdFrameworkCore.Autofac.Attribute;
namespace Service.Charger.Msg.Host.Req
{
/// <summary>
/// 3.3.5 监控平台远程启动充电
/// </summary>
public class RemoteStartCharging
{
public RemoteStartCharging(byte socLimit, byte changePowerCmdType, float changePower,
string chargeOrderNo)
{
SocLimit = socLimit;
ChangePowerCmdType = changePowerCmdType;
ChangePower = changePower;
ChargeOrderNo = chargeOrderNo;
}
/// <summary>
/// SOC 限制
/// </summary>
[Property(0, 8)]
public byte SocLimit { get; set; }
/// <summary>
/// 功率调节指令类型
/// </summary>
[Property(8, 8)]
public byte ChangePowerCmdType { get; set; } = 1;
/// <summary>
/// 功率调节参数
/// </summary>
[Property(16, 16, PropertyReadConstant.Bit, 0.1, 1)]
public float ChangePower { get; set; }
/// <summary>
/// 充电流水号
/// </summary>
[Property(32, 256)]
public string ChargeOrderNo { get; set; }
}
}