mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-10-04 02:11:11 +00:00
Added IQueryResult interface to QueryResult, moved OriginalData to the base class
This commit is contained in:
@@ -187,7 +187,7 @@ public record WebSocketResult<T> : WebSocketResult, IWebSocketResult<T>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public record QueryResult : WebSocketResult
|
public record QueryResult : WebSocketResult, IQueryResult
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ctor
|
/// ctor
|
||||||
@@ -212,6 +212,8 @@ public record QueryResult : WebSocketResult
|
|||||||
Url = result.Url,
|
Url = result.Url,
|
||||||
RequestId = result.RequestId,
|
RequestId = result.RequestId,
|
||||||
ResponseTime = result.ResponseTime,
|
ResponseTime = result.ResponseTime,
|
||||||
|
OriginalData = result.OriginalData,
|
||||||
|
RequestBody = result.RequestBody
|
||||||
};
|
};
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -292,6 +294,9 @@ public record QueryResult : WebSocketResult
|
|||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public string? RequestBody { get; init; }
|
public string? RequestBody { get; init; }
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public string? OriginalData { get; init; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@@ -318,7 +323,4 @@ public record QueryResult<T> : QueryResult, IQueryResult<T>
|
|||||||
public new bool Success => Error == null;
|
public new bool Success => Error == null;
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public T? Data { get; set; }
|
public T? Data { get; set; }
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
public string? OriginalData { get; init; }
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user