using Edge.Core.Parser; using Edge.Core.Parser.BinaryParser.Attributes; using Edge.Core.Parser.BinaryParser.MessageEntity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LanTian_Pump_664_Or_886.MessageEntity { public abstract class MessageBase : MessageTemplateBase { /// /// 包头第一字节,固定值。 /// [Format(1, EncodingType.BIN, -1000)] public virtual byte PrefixFirstByte { get { return 0xF5; } set { ; } } /// /// 当前油枪的物理地址,于加油机端进行设置。 /// [Format(1, EncodingType.BIN, -900)] public virtual byte Adrs { get; set; } = 1; /// /// 0xAn n is the real length. /// [Format(1, EncodingType.BIN, -800)] public virtual byte LengthByte { get; set; } [EnumerableFormat("%cascade", 1000)] public virtual List BodyAndXRL { get; set; } } }