T - Type of the received objectpublic class RetrofitChallongeApiCall<T> extends java.lang.Object implements ChallongeApiCall<T>
| Modifier and Type | Method and Description |
|---|---|
void |
async(AsyncCallback<T> callback)
Deprecated.
|
void |
async(Callback<T> success,
Callback<java.lang.Throwable> error)
Performs an async API call.
|
T |
sync()
Performs a sync API call.
|
public T sync() throws java.io.IOException, ChallongeException
ChallongeApiCallsync in interface ChallongeApiCall<T>java.io.IOException - Exception thrown by error handlingChallongeException - Exception thrown by error handlingpublic void async(Callback<T> success, Callback<java.lang.Throwable> error)
ChallongeApiCallasync in interface ChallongeApiCall<T>success - Called on successful call completionerror - Called on failure@Deprecated public void async(AsyncCallback<T> callback)
ChallongeApiCallasync in interface ChallongeApiCall<T>callback - The callback