sendPaginatedWRequest

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

Deprecated

TO MIGRATE

Method to execute and manage the paginated response of a request

Parameters

request

The request to execute

onSuccess

The action to execute if the request has been successful

onFailure

The action to execute if the request has been failed

onConnectionError

The action to execute if the request has been failed for a connection error