Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Boolean isVerified(String token) {
- MyAPIServices myAPIServices = new NetworkCall();
- myAPIServices.search("a", 1, token, new ResponseCallback<SearchResult>(){
- @Override
- public void onSuccess(SearchResult data) {
- verified = true;
- }
- @Override
- public void onError(Throwable th) {
- if(th.getMessage().equals("You are not logged in")){
- verified = false;
- }
- else
- verified=true;
- }
- });
- return verified;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement