Class ClientResponse<Res>
- Namespace
- Aptos
- Assembly
- Aptos.dll
public class ClientResponse<Res>
Type Parameters
Res
- Inheritance
-
ClientResponse<Res>
- Inherited Members
Constructors
ClientResponse(int, string, Res?, object?, HttpResponseMessage?, Dictionary<string, string>?)
public ClientResponse(int status, string statusText, Res? data, object? error = null, HttpResponseMessage? response = null, Dictionary<string, string>? headers = null)
Parameters
status
intstatusText
stringdata
Reserror
objectresponse
HttpResponseMessageheaders
Dictionary<string, string>
Fields
Data
public Res? Data
Field Value
- Res
Error
The error object returned by the API. This can be a JObject or a string.
public object? Error
Field Value
Headers
public Dictionary<string, string>? Headers
Field Value
Response
public HttpResponseMessage? Response
Field Value
Status
public int Status
Field Value
StatusText
public string StatusText