using Edge.Core.Parser.BinaryParser.Attributes; namespace HengShan_Pump_NonIC_Plus.MessageEntity { /// /// 0BAH----- 取版本号 /// public class GetVersionResponse : NonICMessageTemplateResponseBase { [Format(4, EncodingType.BIN, 2)] public int VersionNumber { get; set; } [Format(1, EncodingType.BIN, 6)] public int BackLightStatus { get; set; } [Format(2, EncodingType.BIN, 7)] public int Price { get; set; } [Format(2, EncodingType.BIN, 9)] public int 密度 { get; set; } [Format(2, EncodingType.BIN, 11)] public int 精度 { get; set; } [Format(1, EncodingType.BIN, 12)] public int 提前量 { get; set; } public override string ToLogString() { return $"软件版本: {VersionNumber}, 背光灯: {BackLightStatus}, 单价: {Price}, 密度: {密度}, 精度: {精度}," + $" 提前量: {提前量}"; } } }