Class ApiResponse<T>
API Response
Inheritance
System.Object
ApiResponse<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Datev.Swagger.Client
Assembly: Simplic.Datev.IO.Swagger.dll
Syntax
public class ApiResponse<T>
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. |
System.Collections.Generic.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 |
---|---|
System.Collections.Generic.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. |