GetAccumulateResponse.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. namespace HengShan_Pump_NonIC_Plus.MessageEntity
  3. {
  4. /// <summary>
  5. /// 升累计6+金额累计6+公斤累计6
  6. /// </summary>
  7. public class GetAccumulateResponse : NonICMessageTemplateResponseBase
  8. {
  9. [Format(6, EncodingType.BcdString, 3)]
  10. public string volumeTotal { get; set; }
  11. [Format(6, EncodingType.BcdString, 6)]
  12. public string accountTotal { get; set; }
  13. /// <summary>
  14. /// currently not used
  15. /// </summary>
  16. [Format(6, EncodingType.BcdString, 8)]
  17. public string kiloTotal { get; set; }
  18. public ulong 升累计
  19. {
  20. get { return ulong.Parse(volumeTotal); }
  21. set {; }
  22. }
  23. public ulong 金额累计
  24. {
  25. get { return ulong.Parse(accountTotal); }
  26. set {; }
  27. }
  28. public ulong 公斤累计
  29. {
  30. get { return ulong.Parse(kiloTotal); }
  31. set {; }
  32. }
  33. public override string ToLogString()
  34. {
  35. return $"升累计: {升累计}, 金额累计: {金额累计}, 公斤累计: {公斤累计}";
  36. }
  37. }
  38. }