T - the generic typepublic interface ServiceCallback<T>
| Modifier and Type | Method and Description | 
|---|---|
| void | onFailure(java.lang.Exception e)Called if there is an error during the request. | 
| void | onResponse(T response)Called with the response. | 
void onResponse(T response)
response - the responsevoid onFailure(java.lang.Exception e)
e - the exception thrown during the request