Struct AlgoApiResponse<T>
Wrapper class around a completed .
This can be deconstructed into a tuple of (ErrorResponse, Payload)
Assembly: cs.temp.dll.dll
Syntax
public struct AlgoApiResponse<T> : IAlgoApiResponse<T>, IAlgoApiResponse
Type Parameters
Name |
Description |
T |
The type of the object deserialized from the response
|
Constructors
AlgoApiResponse(AlgoApiResponse)
Declaration
public AlgoApiResponse(AlgoApiResponse response)
Parameters
AlgoApiResponse(AlgoApiResponse, T)
Declaration
public AlgoApiResponse(AlgoApiResponse response, T payload)
Parameters
AlgoApiResponse(AlgoApiResponse, ErrorResponse)
Declaration
public AlgoApiResponse(AlgoApiResponse response, ErrorResponse error)
Parameters
Properties
ContentType
Declaration
public ContentType ContentType { get; }
Property Value
Data
Declaration
public byte[] Data { get; }
Property Value
Error
Declaration
public ErrorResponse Error { get; }
Property Value
Payload
Declaration
public T Payload { get; }
Property Value
ResponseCode
Declaration
public long ResponseCode { get; }
Property Value
Status
Declaration
public Result Status { get; }
Property Value
Methods
Cast<U>()
Declaration
public AlgoApiResponse<U> Cast<U>()
Returns
Type Parameters
Deconstruct(out ErrorResponse, out T)
Declaration
public void Deconstruct(out ErrorResponse error, out T payload)
Parameters
GetText()
Declaration
Returns
Operators
Implicit(AlgoApiResponse to AlgoApiResponse<T>)
Declaration
public static implicit operator AlgoApiResponse<T>(AlgoApiResponse response)
Parameters
Returns
Implicit(AlgoApiResponse<T> to AlgoApiResponse)
Declaration
public static implicit operator AlgoApiResponse(AlgoApiResponse<T> response)
Parameters
Returns
Implements