CancelAuthResult.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Dfs.WayneChina.HengshanPayTerminal.Support;
  2. using Edge.Core.Parser.BinaryParser.Attributes;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace Dfs.WayneChina.HengshanPayTerminal.MessageEntity.Outgoing
  7. {
  8. public class CancelAuthResult : CardMessageBase
  9. {
  10. public CancelAuthResult() : base(Command.CancelAuthResult)
  11. {
  12. }
  13. /// <summary>
  14. /// Logical card number.
  15. /// 逻辑卡号,10字节,BCD。
  16. /// </summary>
  17. [Format(10, EncodingType.BcdString, -89)]
  18. public string Asn { get; set; }
  19. [Format(4, EncodingType.BIN, -88)]
  20. public int PosTtc { get; set; }
  21. [Format(2, EncodingType.BIN, -87)]
  22. public ushort SeqNo { get; set; }
  23. [Format(2, EncodingType.BIN, -86)]
  24. public ushort FPCode { get; set; }
  25. [Format(1, EncodingType.BIN, -85)]
  26. public byte Result { get; set; }
  27. /// <summary>
  28. /// Length of additional information.
  29. /// 附加信息长度,1字节。
  30. /// </summary>
  31. [Format(1, EncodingType.BIN, -84)]
  32. public byte AdditionalInfoLength { get; set; }
  33. /// <summary>
  34. /// Additional information.
  35. /// 附加信息,2-20字节。
  36. /// </summary>
  37. [EnumerableFormat("AdditionalInfoLength", 1)]
  38. public string AdditionalInfo { get; set; }
  39. }
  40. }