Last active
March 3, 2019 17:59
-
-
Save oktaysenkan/6791261e4f53e5de9bd0bbd1c06d9b22 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| public void getUserByID(int ID, final Callback<User> callback){ | |
| User user = new User(); | |
| // Async işlemler örnek olarak web service'e bir request yapmak. | |
| if (işlemlerbaşarılı){ | |
| callback.onSuccess(user); | |
| } else { | |
| callback.onFailure("Hata"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment