Companion

object Companion

Properties

Link copied to clipboard

DEFAULT_CONNECTION_ERROR_MESSAGE The message to send when an error during the communication with the backend occurred

Link copied to clipboard
const val DEFAULT_REQUEST_TIMEOUT: Long = 5000

DEFAULT_REQUEST_TIMEOUT The timeout values in millis used in the requests

Link copied to clipboard

RESPONSE_DATA_KEY The key for the "response" field

Link copied to clipboard

RESPONSE_STATUS_KEY The key for the "status" field

Link copied to clipboard

USER_IDENTIFIER_KEY The key for the user "id" field

Link copied to clipboard

USER_TOKEN_KEY The key for the user "token" field

Functions

Link copied to clipboard
fun JsonObject.toNullableResponseData(): JsonObject?

Method used to get directly the response data from the request response

Link copied to clipboard
fun JsonObject.toResponseArrayData(): JsonArray

Method used to get directly the response data from the request response and format as JsonArray

Link copied to clipboard
fun JsonObject.toResponseContent(): String

Method used to get directly the response data from the request response and format as String

Link copied to clipboard
fun JsonObject.toResponseData(): JsonObject

Method used to get directly the response data from the request response