LockOrUnlockPumpAck.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using HengshanPaymentTerminal.Support;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace HengshanPaymentTerminal.MessageEntity.Incoming
  7. {
  8. /// <summary>
  9. /// Result of the lock/unlock operation.
  10. /// 加油机回复锁定/解锁操作。
  11. /// </summary>
  12. public class LockOrUnlockPumpAck : CardMessageBase
  13. {
  14. #region Constructor
  15. /// <summary>
  16. /// Constructor
  17. /// </summary>
  18. public LockOrUnlockPumpAck() : base(Command.LockOrUnlockPumpAck)
  19. {
  20. }
  21. #endregion
  22. #region Properties
  23. /// <summary>
  24. /// Id of the payment terminal.
  25. /// 终端号。
  26. /// </summary>
  27. [Format(4, EncodingType.BcdString, -90)]
  28. public string TerminalId { get; set; }
  29. /// <summary>
  30. /// Fueling point.
  31. /// 加油点。
  32. /// </summary>
  33. [Format(2, EncodingType.HexString, -89)]
  34. public string FPCode { get; set; }
  35. /// <summary>
  36. /// Dispenser state.
  37. /// 加油机状态。
  38. /// </summary>
  39. [Format(1, EncodingType.BIN, -88)]
  40. public DispenserState DispenserState { get; set; }
  41. /// <summary>
  42. /// Lock or unlock pump operation.
  43. /// 锁定/解锁操作。
  44. /// </summary>
  45. [Format(1, EncodingType.BIN, -87)]
  46. public LockUnlockOperation OperationType { get; set; }
  47. #endregion
  48. }
  49. }