mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-14 07:01:46 +00:00
42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// Capability lookup result
|
|
/// </summary>
|
|
/// <typeparam name="T">Capability type</typeparam>
|
|
public class SharedCapabilityResolution<T>
|
|
where T : ISharedApiCapability
|
|
{
|
|
/// <summary>
|
|
/// The exchange name
|
|
/// </summary>
|
|
public string Exchange => Capability.Exchange;
|
|
|
|
/// <summary>
|
|
/// The transport type
|
|
/// </summary>
|
|
public SharedTransport Transport => Capability.Transport;
|
|
|
|
/// <summary>
|
|
/// The capability
|
|
/// </summary>
|
|
public T Capability { get; }
|
|
/// <summary>
|
|
/// The capability options
|
|
/// </summary>
|
|
public CapabilityOptions Options { get; }
|
|
|
|
internal SharedCapabilityResolution(
|
|
T capability,
|
|
CapabilityOptions options)
|
|
{
|
|
Capability = capability;
|
|
Options = options;
|
|
}
|
|
}
|
|
}
|