T - Type of the received objectpublic class RetrofitChallongeApiCall<T> extends Object implements ChallongeApiCall<T>
| Constructor and Description |
|---|
RetrofitChallongeApiCall(retrofit2.Call<T> retrofitCall,
ErrorUtil errorUtil)
Create new object with a call and a way to handle errors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
async(AsyncCallback<T> callback)
An async API call.
|
T |
sync()
A sync API call.
|
public T sync() throws IOException, ChallongeException
ChallongeApiCallsync in interface ChallongeApiCall<T>IOExceptionChallongeExceptionpublic void async(AsyncCallback<T> callback)
ChallongeApiCallasync in interface ChallongeApiCall<T>callback - The callbackCopyright © 2016. All rights reserved.