Class ApiResponse<T>
API Response
Inheritance
System.Object
ApiResponse<T>
Namespace: BoldSign.Api
Assembly: BoldSign.Api.dll
Syntax
public class ApiResponse<T> : object
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceApiResponse(Int32, IDictionary<String, String>, T)
Initializes a new instance of the ApiResponse<T> class.
Declaration
public ApiResponse(int statusCode, IDictionary<string, string> headers, T data)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | statusCode | HTTP status code. |
IDictionary<System.String, System.String> | headers | HTTP headers. |
T | data | Data (parsed HTTP body) |
Properties
| Improve this Doc View SourceData
Gets or sets the data (parsed HTTP body)
Declaration
public T Data { get; }
Property Value
Type | Description |
---|---|
T | The data. |
Headers
Gets or sets the HTTP headers
Declaration
public IDictionary<string, string> Headers { get; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.String> | HTTP headers |
StatusCode
Gets or sets the status code (HTTP status code)
Declaration
public int StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The status code. |