RoundUpByVolumeResponse.cs 885 B

1234567891011121314151617181920212223242526272829303132
  1. using Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Base;
  2. using Edge.Core.Parser.BinaryParser.Attributes;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Outgoing
  7. {
  8. /// <summary>
  9. /// Response to volume rounding (升数凑整)
  10. /// Format: 0FFH+03H+0EBH+55H+校验
  11. /// </summary>
  12. public class RoundUpByVolumeResponse : NonCardDispenserMessageTemplateBase
  13. {
  14. public RoundUpByVolumeResponse()
  15. {
  16. CMD = 0xEB;
  17. }
  18. [Format(1, EncodingType.BIN, 3)]
  19. public int result { get; set; }
  20. public Result EnumResult
  21. {
  22. get { return result == 0x55 ? Result.成功 : Result.失败; }
  23. set
  24. {
  25. result = (value == Result.成功) ? 0x55 : 0xAA;
  26. }
  27. }
  28. }
  29. }