mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-20 12:53:02 +00:00
Ratelimit changes
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
namespace CryptoExchange.Net
|
||||
{
|
||||
public class CallResult<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// The data returned by the call
|
||||
/// </summary>
|
||||
public T Data { get; internal set; }
|
||||
/// <summary>
|
||||
/// An error if the call didn't succeed
|
||||
/// </summary>
|
||||
public Error Error { get; internal set; }
|
||||
/// <summary>
|
||||
/// Whether the call was successful
|
||||
/// </summary>
|
||||
public bool Success => Error == null;
|
||||
|
||||
public CallResult(T data, Error error)
|
||||
{
|
||||
Data = data;
|
||||
Error = error;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user