public interface PendingResult<T>
Call. It is used to provide standardized error response we have in the
API through ErrorResponse.| Modifier and Type | Interface and Description |
|---|---|
static interface |
PendingResult.ResultCallback<T>
Callback interface for the API call results.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel the ongoing API call.
|
void |
execute(PendingResult.ResultCallback<T> callback)
Execute the API call, and subscribe to its response.
|
retrofit2.Call<T> |
getCall() |
retrofit2.Call<T> getCall()
void execute(PendingResult.ResultCallback<T> callback)
callback - Callback that provides API call response status and response.void cancel()