mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-14 15:11:44 +00:00
31 lines
874 B
C#
31 lines
874 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CryptoExchange.Net.SharedApis
|
|
{
|
|
/// <summary>
|
|
/// References for a capability available through REST and WebSocket.
|
|
/// </summary>
|
|
public class SharedRestSocketCapability<TCapability, TRest, TSocket>
|
|
: SharedCapabilityReference<TCapability>
|
|
where TCapability : ISharedApiCapability
|
|
where TRest : TCapability, ISharedRest
|
|
where TSocket : TCapability, ISharedSocket
|
|
{
|
|
/// <summary>
|
|
/// REST capability.
|
|
/// </summary>
|
|
public SharedCapabilityReference<TRest> Rest { get; } = new();
|
|
|
|
/// <summary>
|
|
/// WebSocket capability.
|
|
/// </summary>
|
|
public SharedCapabilityReference<TSocket> Socket { get; } = new();
|
|
|
|
internal SharedRestSocketCapability()
|
|
{
|
|
}
|
|
}
|
|
}
|