VRBoardNozzleInitParametersData.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using AutoMapper;
  2. using AutoMapper.Configuration.Annotations;
  3. using Wayne_VaporRecoveryDataCollectorBoard.MessageEntity;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Reflection;
  8. using System.Text;
  9. using VaporRecoveryOnlineWatchHubApp.UnversalApiModels;
  10. namespace Application.VaporRecoveryOnlineWatchHubApp.UnversalApiModels
  11. {
  12. /// <summary>
  13. /// </summary>
  14. public class VRBoardNozzleInitParametersData
  15. {
  16. public byte DataCollectorDeviceAddress { get; set; }
  17. public int SiteLevelNozzleId { get; set; }
  18. public byte 最大未变化次数 { get; set; }
  19. public int 开始加油阀值 { get; set; }
  20. public int 停止加油阀值 { get; set; }
  21. public int 最小加油量 { get; set; }
  22. public int 加油脉冲当量 { get; set; }
  23. public int 油气脉冲当量 { get; set; }
  24. /// <summary>
  25. /// 控制板将依据此值在加油过程中调节气泵回气量,以求尽可能靠近此比值
  26. /// </summary>
  27. public double 气液比值 { get; set; }
  28. /// <summary>
  29. /// when this record created in app side.
  30. /// </summary>
  31. public DateTime TimeStamp { get; set; }
  32. public override string ToString()
  33. {
  34. return GetType().GetProperties().Aggregate(string.Empty,
  35. (result, next) => result + $"{next.Name} : {(next.GetValue(this)?.ToString()) ?? string.Empty} ");
  36. }
  37. }
  38. }