Class Response<TRequestData, TResponseData>
Response is base class for all responses
Inheritance
System.Object
Response<TRequestData, TResponseData>
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.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: KuberWMS.API
Assembly: KuberWMS.dll
Syntax
public class Response<TRequestData, TResponseData>
Type Parameters
Name | Description |
---|---|
TRequestData | Request Data Model |
TResponseData | Request Data Model |
Constructors
Response(Request<TRequestData, TResponseData>, IRestResponse)
Initializes a new instance of the Response<TRequestData, TResponseData> class.
Declaration
public Response(Request<TRequestData, TResponseData> request, IRestResponse restResponse)
Parameters
Type | Name | Description |
---|---|---|
Request<TRequestData, TResponseData> | request | The request. |
Rest |
restResponse | The rest response. |
Properties
Data
Gets the data.
Declaration
public TResponseData Data { get; }
Property Value
Type | Description |
---|---|
TResponse |
The data. |
ErrorMessage
Gets the error message.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
System. |
The error message. |
Headers
Gets the headers.
Declaration
public IList<Parameter> Headers { get; }
Property Value
Type | Description |
---|---|
System. |
The headers. |
IsError
Gets a value indicating whether this instance is error.
Declaration
public bool IsError { get; }
Property Value
Type | Description |
---|---|
System. |
|
IsSuccess
Gets a value indicating whether this instance is success.
Declaration
public bool IsSuccess { get; }
Property Value
Type | Description |
---|---|
System. |
|
Request
Gets the request.
Declaration
public Request<TRequestData, TResponseData> Request { get; }
Property Value
Type | Description |
---|---|
Request<TRequestData, TResponseData> | The request. |
StatusCode
Gets the status code.
Declaration
public int StatusCode { get; }
Property Value
Type | Description |
---|---|
System. |
The status code. |