T - The type being returned to the callbackpublic class StravaAPICallback<T> extends Object implements retrofit.Callback<T>
| Constructor and Description |
|---|
StravaAPICallback(StravaAPIFuture<T> completableFuture) |
| Modifier and Type | Method and Description |
|---|---|
void |
failure(retrofit.RetrofitError error) |
void |
success(T t,
retrofit.client.Response response) |
public StravaAPICallback(StravaAPIFuture<T> completableFuture)
completableFuture - A Future which will be completed when the call to the API is completepublic void failure(retrofit.RetrofitError error)
failure in interface retrofit.Callback<T>Callback.failure(retrofit.RetrofitError)Copyright © 2016 Dan Shannon. All rights reserved.