Undefined_A2_Response.cs 752 B

12345678910111213141516171819202122232425262728
  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. public class Undefined_A2_Response : NonCardDispenserMessageTemplateBase
  9. {
  10. public Undefined_A2_Response()
  11. {
  12. CMD = 0xA2;
  13. }
  14. [Format(1, EncodingType.BIN, 3)]
  15. public int result { get; set; }
  16. public Result EnumResult
  17. {
  18. get { return result == 0x55 ? Result.成功 : Result.失败; }
  19. set
  20. {
  21. result = (value == Result.成功) ? 0x55 : 0xAA;
  22. }
  23. }
  24. }
  25. }