Show / Hide Table of Contents

    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 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

    Methods

    | Improve this Doc View Source

    GetResponseWrapper(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>
    • Improve this Doc
    • View Source
    Back to top © Dangl IT - Georg Dangl