using Edge.Core.Parser.BinaryParser.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static ZhongSheng_NonIC_Pump.SetPumpConfigRequest;
namespace ZhongSheng_NonIC_Pump
{
///
/// PC 读取参数信息字符串从加油机
///
public class ReadPumpConfigRequest : MessageTemplateBase
{
[Format(1, EncodingType.BIN, 1)]
public byte Parameter => 0x02;
[Format(1, EncodingType.BIN, 2)]
public ParameterTableTypeEnum 参数列表类型 { get; set; }
///
/// 枪号为以整个加油站油枪为基础的油枪顺序编号
///
[Format(1, EncodingType.BCD, 3)]
public byte 枪号 { get; set; }
public ReadPumpConfigRequest(ParameterTableTypeEnum paramTable, byte nozzleNumber)
{
base.CommandCode = 0x52;
this.参数列表类型 = paramTable;
this.枪号 = nozzleNumber;
}
}
}