DisplayClockResponse.cs 841 B

12345678910111213141516171819202122232425262728293031
  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. /// The response format is, however, unspecified.
  10. /// </summary>
  11. public class DisplayClockResponse : NonCardDispenserMessageTemplateBase
  12. {
  13. public DisplayClockResponse()
  14. {
  15. CMD = 0xB8;
  16. }
  17. [Format(1, EncodingType.BIN, 3)]
  18. public int result { get; set; }
  19. public Result EnumResult
  20. {
  21. get { return result == 0x55 ? Result.成功 : Result.失败; }
  22. set
  23. {
  24. result = (value == Result.成功) ? 0x55 : 0xAA;
  25. }
  26. }
  27. }
  28. }