AuthPumpWithAmountResponse.cs 699 B

123456789101112131415161718192021222324252627282930
  1. using Parser.BinaryParser.Attributes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace HengShan_Pump_NonIC.MessageEntity
  8. {
  9. public class AuthPumpWithAmountResponse : NonICMessageTemplateBase
  10. {
  11. public AuthPumpWithAmountResponse()
  12. {
  13. //CMD = 0xA9;
  14. }
  15. [Format(1,EncodingType.BIN, 3)]
  16. public int result { get; set; }
  17. public Result EnumResult
  18. {
  19. get { return result == 0x55 ? Result.成功 : Result.失败; }
  20. set
  21. {
  22. result = (value == Result.成功) ? 0x55 : 0xAA;
  23. }
  24. }
  25. }
  26. }