| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using Edge.Core.Parser.BinaryParser.Attributes;
- namespace HengShan_Pump_NonIC_Plus.MessageEntity
- {
- /// <summary>
- /// 升累计6+金额累计6+公斤累计6
- /// </summary>
- public class GetAccumulateResponse : NonICMessageTemplateResponseBase
- {
- [Format(6, EncodingType.BcdString, 3)]
- public string volumeTotal { get; set; }
- [Format(6, EncodingType.BcdString, 6)]
- public string accountTotal { get; set; }
- /// <summary>
- /// currently not used
- /// </summary>
- [Format(6, EncodingType.BcdString, 8)]
- public string kiloTotal { get; set; }
- public ulong 升累计
- {
- get { return ulong.Parse(volumeTotal); }
- set {; }
- }
- public ulong 金额累计
- {
- get { return ulong.Parse(accountTotal); }
- set {; }
- }
- public ulong 公斤累计
- {
- get { return ulong.Parse(kiloTotal); }
- set {; }
- }
- public override string ToLogString()
- {
- return $"升累计: {升累计}, 金额累计: {金额累计}, 公斤累计: {公斤累计}";
- }
- }
- }
|