CardInsertedState.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using Edge.Core.Parser.BinaryParser.MessageEntity;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. namespace LanTian_Sinopec_PumpIcCardReader
  8. {
  9. /// <summary>
  10. /// 加油机对 PC 机普通查询命令 30H
  11. /// PC 机对加油机普通查询命令 30H
  12. /// 加油机发送实时信息命令 31H
  13. /// </summary>
  14. public class CardInsertedState : MessageTemplateBase
  15. {
  16. //public enum GenericInquiryRequestType
  17. //{
  18. // //加油机对PC机普通查询命令30H = 0x30,
  19. // //PC机对加油机普通查询命令30H = 0x30,
  20. // 加油机发送实时信息命令31H = 0x31
  21. //}
  22. //public RealTimeInquiryRequest(GenericInquiryRequestType type)
  23. //{
  24. // base.HANDLE = (byte)type;
  25. //}
  26. [Format(1, EncodingType.BIN, 0)]
  27. public byte St状态字 { get; set; }
  28. [Format(1, EncodingType.BIN, 1)]
  29. public byte MZN枪号 { get; set; }
  30. [Format(1, EncodingType.BIN, 2)]
  31. public byte LEN卡信息数据长度 { get; set; }
  32. [Format(10, EncodingType.BcdString, 3)]
  33. public string ASN卡应用号 { get; set; }
  34. [Format(2, EncodingType.BcdString, 4)]
  35. public string CardSt卡状态 { get; set; }
  36. [Format(4, EncodingType.BIN, 5)]
  37. public int BAL余额 { get; set; }
  38. [EnumerableFormat("LEN卡信息数据长度", "-16", 6, EncodingType = EncodingType.BIN)]
  39. public List<byte> IC_DATA卡片信息 { get; set; }
  40. }
  41. }