core / com.vmadalin.core.network.responses / BaseResponse

BaseResponse

data class BaseResponse<T>

Generic network response for any type data T.

Parameters

code - The HTTP status code of the returned result.

status - A string description of the call status.

message - A more descriptive message of the failure call status.

data - The results returned by the call.

Constructors

<init>

Generic network response for any type data T.

BaseResponse(code: Any, status: String, message: String, data: DataResponse<T>)

Properties

code

The HTTP status code of the returned result.

val code: Any

data

The results returned by the call.

val data: DataResponse<T>

message

A more descriptive message of the failure call status.

val message: String

status

A string description of the call status.

val status: String