1
0
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:
Jan Korf
2018-08-12 13:34:28 +02:00
parent 9dd1b7b318
commit e45858054e
9 changed files with 56 additions and 16 deletions
+24
View File
@@ -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;
}
}
}