Update Broker

This commit is contained in:
2019-04-24 23:14:10 +02:00
parent 0f91751087
commit ab85e78f4c
7 changed files with 87 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using System;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -7,19 +8,29 @@ namespace PlantBox.Broker
{
class HistoricManager
{
[JsonProperty(PropertyName = nameof(MinutesHistoric))]
private List<CaptorsValue> _minutesHistoric;
[JsonIgnore]
public IReadOnlyList<CaptorsValue> MinutesHistoric => _minutesHistoric.AsReadOnly();
[JsonProperty(PropertyName = nameof(HoursHistoric))]
private List<CaptorsValue> _hoursHistoric;
[JsonIgnore]
public IReadOnlyList<CaptorsValue> HoursHistoric => _hoursHistoric.AsReadOnly();
[JsonProperty(PropertyName = nameof(DaysHistoric))]
private List<CaptorsValue> _daysHistoric;
[JsonIgnore]
public IReadOnlyList<CaptorsValue> DaysHistoric => _daysHistoric.AsReadOnly();
[JsonProperty(PropertyName = nameof(WeeksHistoric))]
private List<CaptorsValue> _weeksHistoric;
[JsonIgnore]
public IReadOnlyList<CaptorsValue> WeeksHistoric => _weeksHistoric.AsReadOnly();
[JsonProperty(PropertyName = nameof(MonthsHistoric))]
private List<CaptorsValue> _monthsHistoric;
[JsonIgnore]
public IReadOnlyList<CaptorsValue> MonthsHistoric => _monthsHistoric.AsReadOnly();
public HistoricManager()