Table of Contents

Class RESTResponse<T>

public class RESTResponse<T> : RESTResponse, IResult

Type Parameters

T
Inheritance
RESTResponse<T>
Implements
Inherited Members
Extension Methods

Properties

Body

public T Body { get; set; }

Property Value

T

HasBody

Whether the API response has an empty body.

public override bool HasBody { get; }

Property Value

bool

Methods

StreamDoneT()

Creates a new instance of the RESTResponse class with the success flag set to true. This method is used to quickly create a successful result.

public static RESTResponse<T> StreamDoneT()

Returns

RESTResponse<T>

A new instance of RESTResponse with IsSuccess set to true.