T - the type of object to be expected as a resultpublic abstract class VoucherifyCallback<T>
extends java.lang.Object
onSuccess(T) method for cases where the request is successful, the result
object should be delivered as a parameter.| Constructor and Description |
|---|
VoucherifyCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels this callback.
|
boolean |
isCancelled()
Returns true in case this callback instance was previously cancelled.
|
void |
onFailure(retrofit.RetrofitError retrofitError)
Callback to be invoked in case the request was unsuccessful.
|
abstract void |
onSuccess(T result)
Callback to be invoked in case the request was successful.
|
public abstract void onSuccess(T result)
result - result objectpublic void onFailure(retrofit.RetrofitError retrofitError)
retrofitError - RetrofitError instancepublic void cancel()
onSuccess(Object) and
onFailure(RetrofitError) methods. This action cannot be reversed.public boolean isCancelled()