public abstract class RequestCallbackWrapper<T> extends java.lang.Object implements RequestCallback<T>
Constructor and Description |
---|
RequestCallbackWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
onException(java.lang.Throwable exception)
An exception occurred during the operation
|
void |
onFailed(int code)
Failed operation
|
abstract void |
onResult(int code,
T result,
java.lang.Throwable exception)
Callback for the result of the interface call
|
void |
onSuccess(T result)
Successful operation
|
public abstract void onResult(int code, T result, java.lang.Throwable exception)
code
- result
- exception
- public void onSuccess(T result)
RequestCallback
onSuccess
in interface RequestCallback<T>
result
- The operation resultpublic void onFailed(int code)
RequestCallback
onFailed
in interface RequestCallback<T>
code
- The error code.public void onException(java.lang.Throwable exception)
RequestCallback
onException
in interface RequestCallback<T>
exception
- Exception details