2018-04-14 22:35:52 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-04-18 18:23:39 +09:00
|
|
|
|
using BTCPayServer.Services.Rates;
|
2018-04-14 22:35:52 +09:00
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.ServerViewModels
|
|
|
|
|
{
|
|
|
|
|
public class RatesViewModel
|
|
|
|
|
{
|
|
|
|
|
[Display(Name = "Bitcoin average api keys")]
|
|
|
|
|
public string PublicKey { get; set; }
|
|
|
|
|
public string PrivateKey { get; set; }
|
|
|
|
|
[Display(Name = "Cache the rates for ... minutes")]
|
|
|
|
|
[Range(0, 60)]
|
|
|
|
|
public int CacheMinutes { get; set; }
|
2018-04-18 18:23:39 +09:00
|
|
|
|
public GetRateLimitsResponse RateLimits { get; internal set; }
|
2018-04-14 22:35:52 +09:00
|
|
|
|
}
|
|
|
|
|
}
|