mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-02-16 14:13:46 +00:00
Added PlatformInfo class for specifying platform information
This commit is contained in:
parent
96b3904266
commit
218e0260ce
@ -250,6 +250,40 @@
|
||||
DEX
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Type of platform
|
||||
/// </summary>
|
||||
public enum PlatformType
|
||||
{
|
||||
/// <summary>
|
||||
/// Platform to trade cryptocurrency
|
||||
/// </summary>
|
||||
CryptoCurrencyExchange,
|
||||
/// <summary>
|
||||
/// Platform for trading on predictions
|
||||
/// </summary>
|
||||
PredictionMarket,
|
||||
/// <summary>
|
||||
/// Other
|
||||
/// </summary>
|
||||
Other
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Centralization type
|
||||
/// </summary>
|
||||
public enum CentralizationType
|
||||
{
|
||||
/// <summary>
|
||||
/// Centralized, a person or company is in full control
|
||||
/// </summary>
|
||||
Centralized,
|
||||
/// <summary>
|
||||
/// Decentralized, governance is split over different entities with no single entity in full control
|
||||
/// </summary>
|
||||
Decentralized
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Timeout behavior for queries
|
||||
/// </summary>
|
||||
|
||||
51
CryptoExchange.Net/Objects/PlatformInfo.cs
Normal file
51
CryptoExchange.Net/Objects/PlatformInfo.cs
Normal file
@ -0,0 +1,51 @@
|
||||
namespace CryptoExchange.Net.Objects
|
||||
{
|
||||
/// <summary>
|
||||
/// Information on the platform
|
||||
/// </summary>
|
||||
public record PlatformInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Platform id
|
||||
/// </summary>
|
||||
public string Id { get; }
|
||||
/// <summary>
|
||||
/// Display name
|
||||
/// </summary>
|
||||
public string DisplayName { get; }
|
||||
/// <summary>
|
||||
/// Logo
|
||||
/// </summary>
|
||||
public string Logo { get; }
|
||||
/// <summary>
|
||||
/// Url to main application
|
||||
/// </summary>
|
||||
public string Url { get; }
|
||||
/// <summary>
|
||||
/// Urls to the API documentation
|
||||
/// </summary>
|
||||
public string[] ApiDocsUrl { get; }
|
||||
/// <summary>
|
||||
/// Platform type
|
||||
/// </summary>
|
||||
public PlatformType PlatformType { get; }
|
||||
/// <summary>
|
||||
/// Centralization type
|
||||
/// </summary>
|
||||
public CentralizationType CentralizationType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// ctor
|
||||
/// </summary>
|
||||
public PlatformInfo(string id, string displayName, string logo, string url, string[] apiDocsUrl, PlatformType platformType, CentralizationType centralizationType)
|
||||
{
|
||||
Id = id;
|
||||
DisplayName = displayName;
|
||||
Logo = logo;
|
||||
Url = url;
|
||||
ApiDocsUrl = apiDocsUrl;
|
||||
PlatformType = platformType;
|
||||
CentralizationType = centralizationType;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user