123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- 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
- {
- /// <summary>
- /// once a fueling has done on a nozzle, the VR board will report the flow data of this trx.
- /// This data will persit to Database for history check.
- /// </summary>
- public class VRBoardNozzleTrxFlowData
- {
- //[SourceMember(nameof(GenericData.IntProperty0))]
- public DataCollectorBoardTypeEnum? DataCollectorType { get; set; }
- //[SourceMember(nameof(GenericData.IntProperty1))]
- public byte DataCollectorDeviceAddress { get; set; }
- //[SourceMember(nameof(GenericData.IntProperty2))]
- //public byte DataCollectorNozzleNumber { get; set; }
- //[SourceMember(nameof(GenericData.IntProperty3))]
- public int SiteLevelNozzleId { get; set; }
- //[SourceMember(nameof(GenericData.IntProperty4))]
- //public int DataCollectorDeviceId { get; set; }
- //[SourceMember(nameof(GenericData.IntProperty5))]
- //public int SiteLevelDispenserId { get; set; }
- //[SourceMember(nameof(GenericData.StrProperty0))]
- //public string SiteLevelDispenserDesc { get; set; }
- //[SourceMember(nameof(GenericData.StrProperty1))]
- public double LiquidVolumeWithDecimal { get; set; }
- //[SourceMember(nameof(GenericData.StrProperty2))]
- public double VaporVolumeWithDecimal { get; set; }
- public double VaporLiquidRatio { get; set; }
- /// <summary>
- /// 最大气流速, with decimal
- /// </summary>
- public double? MaxAirFlowRateWithDecimal { get; set; }
- /// <summary>
- /// 最大油流速, with decimal
- /// </summary>
- public double? MaxLiquidFlowRateWithDecimal { get; set; }
- /// <summary>
- /// 平均气流速, with decimal
- /// </summary>
- public double? AvgAirFlowRateWithDecimal { get; set; }
- /// <summary>
- /// 平均油流速, with decimal
- /// </summary>
- public double? AvgLiquidFlowRateWithDecimal { get; set; }
- /// <summary>
- /// when this record created in app side.
- /// </summary>
- public DateTime TimeStamp { get; set; }
- public DateTime? FuellingStartTime { get; set; }
- public DateTime? FuellingEndTime { get; set; }
- //public string SensorId { get; set; }
- public bool 气液比值是否正常 { get; set; }
- //public VRState VrState { get; set; }
- public double? TankPressure { get; set; }
- public double? LiquidPressure { get; set; }
- public double? GasConcentrations { get; set; }
- public override string ToString()
- {
- return GetType().GetProperties().Aggregate(string.Empty,
- (result, next) => result + $"{next.Name} : {(next.GetValue(this)?.ToString()) ?? string.Empty} ");
- }
- }
- }
|