123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- using System;
- using Edge.Core.Parser.BinaryParser.Attributes;
- namespace HengshanPaymentTerminal.MessageEntity.Outgoing
- {
-
-
-
-
- public class InquiryResult : CardMessageBase
- {
- #region Constructor
- public InquiryResult() : base(Command.Ver_info)
- {
-
- }
- #endregion
- #region Properties
-
-
-
-
- [Format(7, EncodingType.BcdString, -90)]
- public long Time { get; private set; }
-
-
-
-
- [Format(2, EncodingType.BIN, -89)]
- public ushort BaseBlacklistVersion { get; set; }
-
-
-
-
- [Format(1, EncodingType.BIN, -88)]
- public byte NewlyAddedBlacklistVersion { get; set; }
-
-
-
-
- [Format(1, EncodingType.BIN, -87)]
- public byte NewlyDeletedBlacklistVersion { get; set; }
-
-
-
-
- [Format(1, EncodingType.BIN, -86)]
- public byte WhitelistVersion { get; set; }
-
-
-
-
- [Format(1, EncodingType.BIN, -85)]
- public byte FuelPriceVersion { get; set; }
-
-
-
-
- [Format(1, EncodingType.BIN, -84)]
- public byte StationGeneralInfoVersion { get; set; }
-
-
-
-
- [Format(1, EncodingType.BIN, -83)]
- public byte PrinterReceiptInfoVersion { get; set; }
-
-
-
-
- [Format(1, EncodingType.BIN, -82)]
- public byte SoftwareDownloadFlag { get; set; }
- [Format(1, EncodingType.BIN, -81)]
- public byte UnspecifiedField1 { get; set; }
- #endregion
- #region Methods
-
-
-
-
- public void SetTime(DateTime timeStamp)
- {
- var formattedTime = timeStamp.ToString("yyyyMMddHHmmss");
- Time = long.Parse(formattedTime);
- }
- #endregion
- }
- }
|