RegisterResult.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace HengshanPaymentTerminal.MessageEntity.Outgoing
  6. {
  7. public class RegisterResult : CardMessageBase
  8. {
  9. public RegisterResult() : base(Command.RegisterResult)
  10. {
  11. }
  12. [Format(4, EncodingType.BcdString, -90)]
  13. public string TerminalId { get; set; }
  14. [Format(16, EncodingType.HexString, -89)]
  15. public string SystemKey { get; set; }
  16. [Format(1, EncodingType.BIN, -88)]
  17. public byte Result { get; set; }
  18. [Format(1, EncodingType.BIN, -87)]
  19. public int StationNameLength { get; set; }
  20. [EnumerableFormat("StationNameLength", -86)]
  21. public List<byte> StationName { get; set; }
  22. [Format(1, EncodingType.BIN, -85)]
  23. public int AdditionalInfoLength { get; set; }
  24. [EnumerableFormat("AdditionalInfoLength", -84)]
  25. public List<byte> AdditionalInfo { get; set; }
  26. }
  27. }