Companion

object Companion

Functions

Link copied to clipboard
fun <R, T> R.sendPaginatedWRequest(request: R.() -> JsonObject, serializer: KSerializer<T>, onSuccess: (PaginatedResponse<T>) -> Unit, onFailure: (JsonObject) -> Unit, onConnectionError: (JsonObject) -> Unit? = null)

Method to execute and manage the paginated response of a request

Link copied to clipboard
fun <R> R.sendWRequest(request: R.() -> JsonObject, onResponse: (JsonObject) -> Unit, onConnectionError: (JsonObject) -> Unit? = null)
fun <R> R.sendWRequest(request: R.() -> JsonObject, onSuccess: (JsonObject) -> Unit, onFailure: (JsonObject) -> Unit, onConnectionError: (JsonObject) -> Unit? = null)

Method to execute and manage the response of a request

Link copied to clipboard
fun JsonObject.toNullResponseData(): JsonObject?
Link copied to clipboard
fun JsonObject.toResponseArrayData(): JsonArray
Link copied to clipboard
fun JsonObject.toResponseContent(): String
Link copied to clipboard
fun JsonObject.toResponseData(): JsonObject