mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 19:37:37 +01:00
31 lines
775 B
C#
31 lines
775 B
C#
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using BTCPayServer.JsonConverters;
|
||
|
using NBitcoin.JsonConverters;
|
||
|
using Newtonsoft.Json;
|
||
|
using Newtonsoft.Json.Converters;
|
||
|
|
||
|
namespace BTCPayServer.Client.Models;
|
||
|
|
||
|
public enum HistogramType
|
||
|
{
|
||
|
Week,
|
||
|
Month,
|
||
|
YTD,
|
||
|
Year,
|
||
|
TwoYears,
|
||
|
Day
|
||
|
}
|
||
|
|
||
|
public class HistogramData
|
||
|
{
|
||
|
[JsonConverter(typeof(StringEnumConverter))]
|
||
|
public HistogramType Type { get; set; }
|
||
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
||
|
public List<decimal> Series { get; set; }
|
||
|
[JsonProperty(ItemConverterType = typeof(DateTimeToUnixTimeConverter))]
|
||
|
public List<DateTimeOffset> Labels { get; set; }
|
||
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
||
|
public decimal Balance { get; set; }
|
||
|
}
|