T - Class implementing BaseResponse interfacepublic interface APIRequestCallback<T extends BaseResponse>
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(GoSellError errorDetails)
General failure callback
|
void |
onSuccess(int responseCode,
T serializedResponse)
Success callback.
|
void onSuccess(int responseCode,
T serializedResponse)
responseCode - Response code, from 200 to 299serializedResponse - Serialized response of T type or null in case when response could not be serialized into T typevoid onFailure(GoSellError errorDetails)
errorDetails - GoSellError representing a failure reason