UnAuthorizePumpResponse.cs 808 B

1234567891011121314151617181920212223242526272829
  1. using Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Base;
  2. using Edge.Core.Parser.BinaryParser.Attributes;
  3. namespace Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Outgoing
  4. {
  5. /// <summary>
  6. /// Request: 0FFH+02H+0AAH+校验
  7. /// Response:0FFH+03H+0AAH+55H+校验
  8. /// </summary>
  9. public class UnAuthorizePumpResponse : NonCardDispenserMessageTemplateBase
  10. {
  11. public UnAuthorizePumpResponse()
  12. {
  13. CMD = 0xAA;
  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. }