RoundUpByAmountResponse.cs 693 B

1234567891011121314151617181920212223242526272829
  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 RoundUpByAmountResponse : NonICMessageTemplateBase
  10. {
  11. public RoundUpByAmountResponse()
  12. {
  13. //CMD = 0xEA;
  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. }