Show / Hide Table of Contents

    Class ResponseWrapper<T>

    This container wraps Http responses

    Inheritance
    System.Object
    ResponseWrapper<T>
    Namespace: Dangl.RestClient
    Assembly: Dangl.RestClient.dll
    Syntax
    public class ResponseWrapper<T> : object
    Type Parameters
    Name Description
    T

    Properties

    | Improve this Doc View Source

    Error

    The error

    Declaration
    public ApiError Error { get; }
    Property Value
    Type Description
    ApiError
    | Improve this Doc View Source

    IsSuccess

    Indicates if the request was successful

    Declaration
    public bool IsSuccess { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Response

    The original response

    Declaration
    public HttpResponseMessage Response { get; }
    Property Value
    Type Description
    HttpResponseMessage
    | Improve this Doc View Source

    Result

    The deserialized result

    Declaration
    public T Result { get; }
    Property Value
    Type Description
    T

    Methods

    | Improve this Doc View Source

    GetResponseWrapper(HttpResponseMessage)

    This container wraps Http responses

    Declaration
    public static Task<ResponseWrapper<T>> GetResponseWrapper(HttpResponseMessage response)
    Parameters
    Type Name Description
    HttpResponseMessage response
    Returns
    Type Description
    Task<ResponseWrapper<T>>
    • Improve this Doc
    • View Source
    Back to top © Dangl IT - Georg Dangl