AuthPumpWiithKiloResponse.cs 695 B

123456789101112131415161718192021222324252627
  1. 
  2. using Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Base;
  3. using Edge.Core.Parser.BinaryParser.Attributes;
  4. namespace Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Outgoing
  5. {
  6. public class AuthPumpWiithKiloResponse : NonCardDispenserMessageTemplateBase
  7. {
  8. public AuthPumpWiithKiloResponse()
  9. {
  10. CMD = 0xA8;
  11. }
  12. [Format(1, EncodingType.BIN, 3)]
  13. public int result { get; set; }
  14. public Result EnumResult
  15. {
  16. get { return result == 0x55 ? Result.成功 : Result.失败; }
  17. set
  18. {
  19. result = (value == Result.成功) ? 0x55 : 0xAA;
  20. }
  21. }
  22. }
  23. }