btcpayserver/BTCPayServer/Services/Rates/IRateProvider.cs

34 lines
645 B
C#
Raw Normal View History

2017-09-13 15:47:34 +09:00
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace BTCPayServer.Services.Rates
2017-09-13 15:47:34 +09:00
{
public class Rate
{
public Rate()
{
2017-09-13 15:47:34 +09:00
}
public Rate(string currency, decimal value)
{
Value = value;
Currency = currency;
}
public string Currency
{
get; set;
}
public decimal Value
{
get; set;
}
}
2017-09-13 15:47:34 +09:00
public interface IRateProvider
{
Task<decimal> GetRateAsync(string currency);
Task<ICollection<Rate>> GetRatesAsync();
}
2017-09-13 15:47:34 +09:00
}