mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
34 lines
645 B
C#
34 lines
645 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Services.Rates
|
|
{
|
|
public class Rate
|
|
{
|
|
public Rate()
|
|
{
|
|
|
|
}
|
|
public Rate(string currency, decimal value)
|
|
{
|
|
Value = value;
|
|
Currency = currency;
|
|
}
|
|
public string Currency
|
|
{
|
|
get; set;
|
|
}
|
|
public decimal Value
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
public interface IRateProvider
|
|
{
|
|
Task<decimal> GetRateAsync(string currency);
|
|
Task<ICollection<Rate>> GetRatesAsync();
|
|
}
|
|
}
|