Table of Contents

Class HttpApiResponse<TData, TError>

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime.dll

Describe the content of HttpApiResponse

public class HttpApiResponse<TData, TError>

Type Parameters

TData

The data type

TError

The error type

Inheritance

objectHttpApiResponse<TData, TError>

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Extension Methods

ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<HttpApiResponse<TData, TError>>(HttpApiResponse<TData, TError>)

Constructors

HttpApiResponse()

public HttpApiResponse()

Properties

Data

The data are returned if the HTTP request is successful

public TData Data { get; set; }

Property Value

TData

Error

The error is returned if the HTTP request is failed

public TError Error { get; set; }

Property Value

TError

IsSuccessStatusCode

True if the status code is 2xxx. Otherwise, it is false.

public bool IsSuccessStatusCode { get; set; }

Property Value

bool

StatusCode

The http status code

public HttpStatusCode StatusCode { get; set; }

Property Value

HttpStatusCode