T - Type of the responsepublic interface ChallongeApiCall<T>
| Modifier and Type | Method and Description |
|---|---|
void |
async(AsyncCallback<T> callback)
Deprecated.
Deprecated in favor of
async(Callback, Callback) |
void |
async(Callback<T> success,
Callback<java.lang.Throwable> error)
Performs an async API call.
|
T |
sync()
Performs a sync API call.
|
T sync() throws java.io.IOException, ChallongeException
java.io.IOException - Exception thrown by error handlingChallongeException - Exception thrown by error handlingvoid async(Callback<T> success, Callback<java.lang.Throwable> error)
success - Called on successful call completionerror - Called on failure@Deprecated void async(AsyncCallback<T> callback)
async(Callback, Callback)callback - The callback