using AutoMapper; using AutoMapper.Configuration.Annotations; using Wayne_VaporRecoveryDataCollectorBoard.MessageEntity; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using VaporRecoveryOnlineWatchHubApp.UnversalApiModels; namespace Application.VaporRecoveryOnlineWatchHubApp.UnversalApiModels { /// /// public class VRBoardNozzleInitParametersData { public byte DataCollectorDeviceAddress { get; set; } public int SiteLevelNozzleId { get; set; } public byte 最大未变化次数 { get; set; } public int 开始加油阀值 { get; set; } public int 停止加油阀值 { get; set; } public int 最小加油量 { get; set; } public int 加油脉冲当量 { get; set; } public int 油气脉冲当量 { get; set; } /// /// 控制板将依据此值在加油过程中调节气泵回气量,以求尽可能靠近此比值 /// public double 气液比值 { get; set; } /// /// when this record created in app side. /// public DateTime TimeStamp { get; set; } public override string ToString() { return GetType().GetProperties().Aggregate(string.Empty, (result, next) => result + $"{next.Name} : {(next.GetValue(this)?.ToString()) ?? string.Empty} "); } } }