LUSID C# SDK
Public Member Functions | Properties | List of all members
Lusid.Sdk.Client.ApiResponse< T > Class Template Reference

API Response More...

Inheritance diagram for Lusid.Sdk.Client.ApiResponse< T >:
Inheritance graph
[legend]

Public Member Functions

 ApiResponse (HttpStatusCode statusCode, Multimap< string, string > headers, T data, string rawContent)
 Initializes a new instance of the ApiResponse<T> class. More...
 
 ApiResponse (HttpStatusCode statusCode, Multimap< string, string > headers, T data)
 Initializes a new instance of the ApiResponse<T> class. More...
 
 ApiResponse (HttpStatusCode statusCode, T data, string rawContent)
 Initializes a new instance of the ApiResponse<T> class. More...
 
 ApiResponse (HttpStatusCode statusCode, T data)
 Initializes a new instance of the ApiResponse<T> class. More...
 

Properties

HttpStatusCode StatusCode [get]
 Gets or sets the status code (HTTP status code) More...
 
Multimap< string, string > Headers [get]
 Gets or sets the HTTP headers More...
 
Data [get]
 Gets or sets the data (parsed HTTP body) More...
 
string ErrorText [get, set]
 Gets or sets any error text defined by the calling client. More...
 
List< Cookie > Cookies [get, set]
 Gets or sets any cookies passed along on the response. More...
 
Type ResponseType [get]
 The content of this response More...
 
object Content [get]
 The data type of Content More...
 
string RawContent [get]
 The raw content More...
 
- Properties inherited from Lusid.Sdk.Client.IApiResponse
Type ResponseType [get]
 The data type of Content More...
 
Object Content [get]
 The content of this response More...
 
HttpStatusCode StatusCode [get]
 Gets or sets the status code (HTTP status code) More...
 
Multimap< string, string > Headers [get]
 Gets or sets the HTTP headers More...
 
string ErrorText [get, set]
 Gets or sets any error text defined by the calling client. More...
 
List< Cookie > Cookies [get, set]
 Gets or sets any cookies passed along on the response. More...
 
string RawContent [get]
 The raw content of this response More...
 

Detailed Description

API Response

Constructor & Destructor Documentation

◆ ApiResponse() [1/4]

Lusid.Sdk.Client.ApiResponse< T >.ApiResponse ( HttpStatusCode  statusCode,
Multimap< string, string >  headers,
data,
string  rawContent 
)
inline

Initializes a new instance of the ApiResponse<T> class.

Parameters
statusCodeHTTP status code.
headersHTTP headers.
dataData (parsed HTTP body)
rawContentRaw content.

◆ ApiResponse() [2/4]

Lusid.Sdk.Client.ApiResponse< T >.ApiResponse ( HttpStatusCode  statusCode,
Multimap< string, string >  headers,
data 
)
inline

Initializes a new instance of the ApiResponse<T> class.

Parameters
statusCodeHTTP status code.
headersHTTP headers.
dataData (parsed HTTP body)

◆ ApiResponse() [3/4]

Lusid.Sdk.Client.ApiResponse< T >.ApiResponse ( HttpStatusCode  statusCode,
data,
string  rawContent 
)
inline

Initializes a new instance of the ApiResponse<T> class.

Parameters
statusCodeHTTP status code.
dataData (parsed HTTP body)
rawContentRaw content.

◆ ApiResponse() [4/4]

Lusid.Sdk.Client.ApiResponse< T >.ApiResponse ( HttpStatusCode  statusCode,
data 
)
inline

Initializes a new instance of the ApiResponse<T> class.

Parameters
statusCodeHTTP status code.
dataData (parsed HTTP body)

Property Documentation

◆ Content

object Lusid.Sdk.Client.ApiResponse< T >.Content
get

The data type of Content

◆ Cookies

List<Cookie> Lusid.Sdk.Client.ApiResponse< T >.Cookies
getset

Gets or sets any cookies passed along on the response.

◆ Data

Gets or sets the data (parsed HTTP body)

The data.

◆ ErrorText

string Lusid.Sdk.Client.ApiResponse< T >.ErrorText
getset

Gets or sets any error text defined by the calling client.

◆ Headers

Multimap<string, string> Lusid.Sdk.Client.ApiResponse< T >.Headers
get

Gets or sets the HTTP headers

HTTP headers

◆ RawContent

string Lusid.Sdk.Client.ApiResponse< T >.RawContent
get

The raw content

◆ ResponseType

Type Lusid.Sdk.Client.ApiResponse< T >.ResponseType
get

The content of this response

◆ StatusCode

HttpStatusCode Lusid.Sdk.Client.ApiResponse< T >.StatusCode
get

Gets or sets the status code (HTTP status code)

The status code.


The documentation for this class was generated from the following file: