Class ApiResponse<T>
API Response
public class ApiResponse<T>
Type Parameters
T
- Inheritance
-
ApiResponse<T>
- Inherited Members
Constructors
ApiResponse(int, IDictionary<string, string>, T)
Initializes a new instance of the ApiResponse<T> class.
public ApiResponse(int statusCode, IDictionary<string, string> headers, T data)
Parameters
statusCode
intHTTP status code.
headers
IDictionary<string, string>HTTP headers.
data
TData (parsed HTTP body)
Properties
Data
Gets or sets the data (parsed HTTP body)
public T Data { get; }
Property Value
- T
The data.
Headers
Gets or sets the HTTP headers
public IDictionary<string, string> Headers { get; }
Property Value
- IDictionary<string, string>
HTTP headers
StatusCode
Gets or sets the status code (HTTP status code)
public int StatusCode { get; }
Property Value
- int
The status code.