Update Broker
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user