T
- expected response typepublic abstract class SpotifyCallback<T> extends Object implements retrofit.Callback<T>
RetrofitError
s to SpotifyError
s
in the error callbacks.
spotify.getMySavedTracks(new SpotifyCallback<Pager<SavedTrack>>() {
public void success(Pager<SavedTrack> savedTrackPager, Response response) {
// handle successful response
}
public void failure(SpotifyError error) {
// handle error
}
});
Callback
Constructor and Description |
---|
SpotifyCallback() |
public abstract void failure(SpotifyError error)
public void failure(retrofit.RetrofitError error)
failure
in interface retrofit.Callback<T>