Class ApiResponse<T>
API Response
Inheritance
Namespace: Telerik.CallHome.OpenAPI.Client
Assembly: Telerik.Windows.Controls.dll
Syntax
public class ApiResponse<T> : Object, IApiResponse
Type Parameters
T
|
Constructors
ApiResponse(HttpStatusCode, T)
Initializes a new instance of the ApiResponse<T> class.
Declaration
public ApiResponse(HttpStatusCode statusCode, T data)
Parameters
System.Net.HttpStatusCode
statusCode
HTTP status code. |
T
data
Data (parsed HTTP body) |
ApiResponse(HttpStatusCode, T, String)
Initializes a new instance of the ApiResponse<T> class.
Declaration
public ApiResponse(HttpStatusCode statusCode, T data, string rawContent)
Parameters
System.Net.HttpStatusCode
statusCode
HTTP status code. |
T
data
Data (parsed HTTP body) |
System.String
rawContent
Raw content. |
ApiResponse(HttpStatusCode, Multimap<String, String>, T)
Initializes a new instance of the ApiResponse<T> class.
Declaration
public ApiResponse(HttpStatusCode statusCode, Multimap<string, string> headers, T data)
Parameters
System.Net.HttpStatusCode
statusCode
HTTP status code. |
Multimap<System.String, System.String>
headers
HTTP headers. |
T
data
Data (parsed HTTP body) |
ApiResponse(HttpStatusCode, Multimap<String, String>, T, String)
Initializes a new instance of the ApiResponse<T> class.
Declaration
public ApiResponse(HttpStatusCode statusCode, Multimap<string, string> headers, T data, string rawContent)
Parameters
System.Net.HttpStatusCode
statusCode
HTTP status code. |
Multimap<System.String, System.String>
headers
HTTP headers. |
T
data
Data (parsed HTTP body) |
System.String
rawContent
Raw content. |
Properties
Content
The data type of Content
Declaration
public object Content { get; }
Property Value
System.Object
|
Implements
Cookies
Gets or sets any cookies passed along on the response.
Declaration
public List<Cookie> Cookies { get; set; }
Property Value
System.Collections.Generic.List<System.Net.Cookie>
|
Implements
Data
Gets or sets the data (parsed HTTP body)
Declaration
public T Data { get; }
Property Value
T
The data. |
ErrorText
Gets or sets any error text defined by the calling client.
Declaration
public string ErrorText { get; set; }
Property Value
System.String
|
Implements
Headers
Gets or sets the HTTP headers
Declaration
public Multimap<string, string> Headers { get; }
Property Value
Multimap<System.String, System.String>
HTTP headers |
Implements
RawContent
The raw content
Declaration
public string RawContent { get; }
Property Value
System.String
|
Implements
ResponseType
The content of this response
Declaration
public Type ResponseType { get; }
Property Value
System.Type
|
Implements
StatusCode
Gets or sets the status code (HTTP status code)
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
System.Net.HttpStatusCode
The status code. |