Created
November 19, 2017 11:48
-
-
Save adityaladwa/899fd74d6342b3f7a3dab83c168c1924 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
viewModel.login() | |
.subscribeWith(new DisposableSingleObserver<Result>() { | |
@Override | |
public void onSuccess(Result result) { | |
//Handle Success | |
} | |
@Override | |
public void onError(Throwable e) { | |
if (e instanceof NetworkInterceptor.NoNetworkException) { | |
//Handle Network error | |
} | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment