Dev Api Response

class DevApiResponse<T>

Base API Response

Author

Jimly A.

Since

04-Jun-20.

Parameters

T

any object model to data variable in response

Constructors

Link copied to clipboard
fun DevApiResponse()

Properties

Link copied to clipboard
@SerializedName(value = "code" )
val code: Int? = null

response code

Link copied to clipboard
@SerializedName(value = "data" )
val data: T? = null

the data you need from API

Link copied to clipboard
@SerializedName(value = "message" )
val message: String? = null

message of the response

Link copied to clipboard
@SerializedName(value = "success" )
val success: String? = null

does the operation successful?

Sources

Link copied to clipboard