using Edge.Core.Parser.BinaryParser.Attributes; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ZhongSheng_NonIC_Pump { /// /// Response.FrameNo. 与请求的 Request.FrameNo 没有关系。 /// public class ReadPumpAccumulatorResponse : MessageTemplateBase { /// /// block count /// [Format(1, EncodingType.BIN, 1)] public byte 信息计数 { get; set; } [EnumerableFormat("信息计数", 2, EncodingType = EncodingType.BIN)] public List NozzleAndAccumulators { get; set; } public class NozzleAndAccumulator { /// /// 枪号 /// [Format(1, EncodingType.BIN, 1)] public byte 枪号 { get; set; } [Format(5, EncodingType.BIN, 2)] public long 金额累计 { get; set; } /// /// 油量累计(带2位小数) /// [Format(4, EncodingType.BIN, 2)] public int 油量累计 { get; set; } } } }