Files
BeWoPlaner/BeWoPlanerMobil/Util/SupportConceptStatisticsData.cs
2021-04-14 12:35:15 +02:00

38 lines
984 B
C#

using System.Collections.Generic;
using Newtonsoft.Json;
namespace BeWoPlanerMobil.Util
{
public class SupportConceptStatisticsData
{
[JsonProperty("percentage")]
public decimal Percentage { get; set; }
[JsonProperty("statisticPeriods")]
public List<StatisticPeriod> StatisticPeriods { get; set; } = new List<StatisticPeriod>();
[JsonProperty("showDiagram")]
public bool ShowDiagram { get; set; } = false;
}
public class StatisticPeriod
{
[JsonProperty("header2values")]
public List<Header2Values> Header2Values { get; set; } = new List<Header2Values>();
}
public struct Header2Values
{
[JsonProperty("header")]
public string Header { get; set; }
[JsonProperty("value")]
public string Value { get; set; }
public Header2Values(string header, string value)
{
Header = header;
Value = value;
}
}
}