mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
30 lines
745 B
C#
30 lines
745 B
C#
namespace BTCPayServer.Rating
|
|
{
|
|
public enum RateSource
|
|
{
|
|
Coingecko,
|
|
Direct
|
|
}
|
|
public class AvailableRateProvider
|
|
{
|
|
public string Name { get; }
|
|
public string Url { get; }
|
|
public string Id { get; }
|
|
public string SourceId { get; }
|
|
public RateSource Source { get; }
|
|
|
|
public AvailableRateProvider(string id, string name, string url) : this(id, id, name, url, RateSource.Direct)
|
|
{
|
|
|
|
}
|
|
public AvailableRateProvider(string id, string sourceId, string name, string url, RateSource source)
|
|
{
|
|
Id = id;
|
|
SourceId = sourceId;
|
|
Name = name;
|
|
Url = url;
|
|
Source = source;
|
|
}
|
|
}
|
|
}
|