VolumeTotalizer.cs 814 B

1234567891011121314151617181920212223242526272829
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Dfs.WayneChina.GilbarcoDispenserPayTerminal.MessageEntities.Incoming
  6. {
  7. public class VolumeTotalizer : CardMessageBase
  8. {
  9. public VolumeTotalizer() : base(HandleType.ReadVolumeTotalizer)
  10. {
  11. }
  12. [Format(1, EncodingType.BIN, -94)]
  13. public byte NozzleCount { get; set; }
  14. [EnumerableFormat("NozzleCount", 2, EncodingType = EncodingType.BIN)]
  15. public List<VolumeTotalInfo> VolumeTotalInfoList { get; set; }
  16. }
  17. public class VolumeTotalInfo
  18. {
  19. [Format(1, EncodingType.BIN, 1)]
  20. public byte NozzleNo { get; set; }
  21. [Format(4, EncodingType.BIN, 2)]
  22. public int VolumeTotal { get; set; }
  23. }
  24. }