PcAskReadPumpAccumulatorResponse.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 FuRen_Sinopec_IcCardReader
  7. {
  8. /// <summary>
  9. /// PC 机读取加油机信息命令
  10. /// </summary>
  11. public class PcAskReadPumpAccumulatorResponse : KaJiLianDongV11MessageTemplateBase
  12. {
  13. /// <summary>
  14. /// 油枪数n
  15. /// </summary>
  16. [Format(1, EncodingType.BIN, 1)]
  17. public byte GUN_N_油枪数 { get; set; }
  18. [EnumerableFormat("GUN_N_油枪数", 2, EncodingType = EncodingType.BIN)]
  19. public List<NozzleAndAccumulator> MZN_单个油枪 { get; set; }
  20. public class NozzleAndAccumulator
  21. {
  22. /// <summary>
  23. /// 枪号
  24. /// </summary>
  25. [Format(1, EncodingType.BIN, 1)]
  26. public byte NZN_枪号 { get; set; }
  27. /// <summary>
  28. /// 升累计,单位:0.01 升
  29. /// </summary>
  30. [Format(4, EncodingType.BIN, 2)]
  31. public int V_TOT_升累计 { get; set; }
  32. }
  33. }
  34. }