send Paginated WRequest
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
on Success
The action to execute if the request has been successful
on Failure
The action to execute if the request has been failed
on Connection Error
The action to execute if the request has been failed for a connection error