using System; using System.Collections.Generic; using System.Linq; namespace IStation.Model { public class StationSignalRecord { public StationSignalRecord() { } public StationSignalRecord(Model.StationSignalRecord rhs) { this.Time = rhs.Time; this.PumpRunCount = rhs.PumpRunCount; this.PumpSignalRecords = rhs.PumpSignalRecords?.Select(x => new Model.PumpSignalRecord(x)).ToList(); } /// /// 时间 /// public DateTime Time { get; set; } /// /// 泵运行数量 /// public int PumpRunCount { get; set; } /// /// 总流量 /// public double TotalFlow { get; set; } /// /// 总压力 /// public double TotalPressure { get; set; } /// /// 偏差流量 /// public double DiffFlow { get; set; } /// /// 泵站信号字典 /// public Dictionary ModelRecordDict { get; set; } /// /// 泵信号记录列表 /// public List PumpSignalRecords { get; set; } } }