コード例 #1
0
 public Measurement(MeasurementEntity measurementEntity, Installation installation, MeasurementItem measurementItem)
 {
     Current      = measurementItem;
     History      = JsonConvert.DeserializeObject <IEnumerable <MeasurementItem> >(measurementEntity.History);
     Forecast     = JsonConvert.DeserializeObject <IEnumerable <MeasurementItem> >(measurementEntity.Forecast);
     Installation = installation;
 }
コード例 #2
0
 public MeasurementItemEntity(MeasurementItem current)
 {
     this.FromDateTime = current.FromDateTime;
     this.TillDateTime = current.TillDateTime;
     this.Values       = JsonConvert.SerializeObject(current.Values);
     this.Indexes      = JsonConvert.SerializeObject(current.Indexes);
     this.Standards    = JsonConvert.SerializeObject(current.Standards);
 }
コード例 #3
0
ファイル: Measurement.cs プロジェクト: kamilosxp/AirMonitor
 public Measurement(MeasurementItem measurementItem, Installation installation)
 {
     Current      = measurementItem;
     Installation = installation;
 }