We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TaskService taskService = ServiceGenerator.createService(TaskService.class); Call<List<Task>> call = taskService.getTasks(); call.enqueue(new Callback<List<Task>>() { @Override public void onResponse(Call<List<Task>> call, Response<List<Task>> response) { if (response.isSuccessful()) { // tasks available } else { // error response, no access to resource? } } @Override public void onFailure(Call<List<Task>> call, Throwable t) { // something went completely south (like no internet connection) Log.d("Error", t.getMessage()); } }
The text was updated successfully, but these errors were encountered:
Call
enum Response { case .success case .failure }
Sorry, something went wrong.
Results of our API discussion for Response enum: https://gist.github.com/cbh2000/e1403a479cbfd9198f86c5adb60ab1d5
No branches or pull requests
The text was updated successfully, but these errors were encountered: