Class ResponseWrapper
This container wraps Http responses
Inheritance
System.Object
ResponseWrapper
Namespace: Dangl.RestClient
Assembly: Dangl.RestClient.dll
Syntax
public class ResponseWrapper : object
Properties
| Improve this Doc View SourceError
The error
Declaration
public ApiError Error { get; }
Property Value
| Type | Description |
|---|---|
| ApiError |
IsSuccess
Indicates if the request was successful
Declaration
public bool IsSuccess { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Response
The original response
Declaration
public HttpResponseMessage Response { get; }
Property Value
| Type | Description |
|---|---|
| HttpResponseMessage |
Methods
| Improve this Doc View SourceGetResponseWrapper(HttpResponseMessage)
This container wraps Http responses
Declaration
public static Task<ResponseWrapper> GetResponseWrapper(HttpResponseMessage response)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseMessage | response |
Returns
| Type | Description |
|---|---|
| Task<ResponseWrapper> |