Created
January 15, 2016 16:18
-
-
Save shelajev/326dd3b741cc1b1f83a5 to your computer and use it in GitHub Desktop.
retrofit2-retrofit-async.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call.enqueue(new Callback<List<Contributor>>() { | |
@Override | |
public void onResponse(Response<List<Contributor>> response, Retrofit retrofit) { | |
// handle success | |
} | |
@Override | |
public void onFailure(Throwable t) { | |
// handle failure | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment