public interface APICallBack<T>
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(HttpContext context,
Throwable error)
On Completed callback for API calls
|
void |
onSuccess(HttpContext context,
T response)
On Completed callback for API calls
|
void onSuccess(HttpContext context, T response)
context - The context of the API requestresponse - The response received from the API Callvoid onFailure(HttpContext context, Throwable error)
context - The context of the API requesterror - Any error detected during the API Call and/or deserializationCopyright © 2017. All rights reserved.