Show / Hide Table of Contents

Class ApiResponse<TData, TStatusCode>

Defines the standard response for all services.

Inheritance
System.Object
ApiResponse<TData, TStatusCode>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.HttpClient
Assembly: cs.temp.dll.dll
Syntax
public class ApiResponse<TData, TStatusCode>
    where TData : class where TStatusCode : struct, IConvertible
Type Parameters
Name Description
TData

Type of the Data property.

TStatusCode

Type of the StatusCode poperty.

Properties

Data

Data sent in the response.

Declaration
public TData Data { get; set; }
Property Value
Type Description
TData

Message

An optional localized message describing the execution of the service.

Declaration
public string Message { get; set; }
Property Value
Type Description
System.String

MessageType

Describes the type of message, null if there is no message.

Declaration
public ApiMessageType? MessageType { get; set; }
Property Value
Type Description
System.Nullable<ApiMessageType>

StatusCode

The status code related to service execution (enumeration).

Declaration
public TStatusCode StatusCode { get; set; }
Property Value
Type Description
TStatusCode

Success

Indicates whether the service ran successfully.

Declaration
public bool Success { get; set; }
Property Value
Type Description
System.Boolean
Back to top Generated by DocFX