ReadPumpAccumulatorResponse.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace ZhongSheng_NonIC_Pump
  7. {
  8. /// <summary>
  9. /// Response.FrameNo. 与请求的 Request.FrameNo 没有关系。
  10. /// </summary>
  11. public class ReadPumpAccumulatorResponse : MessageTemplateBase
  12. {
  13. /// <summary>
  14. /// block count
  15. /// </summary>
  16. [Format(1, EncodingType.BIN, 1)]
  17. public byte 信息计数 { get; set; }
  18. [EnumerableFormat("信息计数", 2, EncodingType = EncodingType.BIN)]
  19. public List<NozzleAndAccumulator> NozzleAndAccumulators { get; set; }
  20. public class NozzleAndAccumulator
  21. {
  22. /// <summary>
  23. /// 枪号
  24. /// </summary>
  25. [Format(1, EncodingType.BIN, 1)]
  26. public byte 枪号 { get; set; }
  27. [Format(5, EncodingType.BIN, 2)]
  28. public long 金额累计 { get; set; }
  29. /// <summary>
  30. /// 油量累计(带2位小数)
  31. /// </summary>
  32. [Format(4, EncodingType.BIN, 2)]
  33. public int 油量累计 { get; set; }
  34. }
  35. }
  36. }