GetVersionResponse.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. namespace HengShan_Pump_NonIC_Plus.MessageEntity
  3. {
  4. /// <summary>
  5. /// 0BAH----- 取版本号
  6. /// </summary>
  7. public class GetVersionResponse : NonICMessageTemplateResponseBase
  8. {
  9. [Format(4, EncodingType.BIN, 2)]
  10. public int VersionNumber { get; set; }
  11. [Format(1, EncodingType.BIN, 6)]
  12. public int BackLightStatus { get; set; }
  13. [Format(2, EncodingType.BIN, 7)]
  14. public int Price { get; set; }
  15. [Format(2, EncodingType.BIN, 9)]
  16. public int 密度 { get; set; }
  17. [Format(2, EncodingType.BIN, 11)]
  18. public int 精度 { get; set; }
  19. [Format(1, EncodingType.BIN, 12)]
  20. public int 提前量 { get; set; }
  21. public override string ToLogString()
  22. {
  23. return $"软件版本: {VersionNumber}, 背光灯: {BackLightStatus}, 单价: {Price}, 密度: {密度}, 精度: {精度}," +
  24. $" 提前量: {提前量}";
  25. }
  26. }
  27. }