Examples of FailureEvent


Examples of io.conducive.client.ui.events.FailureEvent

            @Override
            public void onSuccess(Boolean result) {
                if (result) {
                    eventBus.post(new UserAuthorizedEvent(user, false));
                } else {
                    eventBus.post(new FailureEvent("Credentials were not recognized. Maybe you want to register?"));
                }
            }
        });
    }
View Full Code Here

Examples of io.conducive.client.ui.events.FailureEvent

            onSuccess(res);
        }
    }

    public void onFailure(String reason) {
        eventBus.post(new FailureEvent(reason));
    }
View Full Code Here

Examples of io.conducive.client.ui.events.FailureEvent

            @Override
            public void onSuccess(Boolean result) {
                if (result) {
                    eventBus.post(new UserAuthorizedEvent(user, true));
                } else {
                    eventBus.post(new FailureEvent("Registration wasn't accepted. Try another username."));
                }
            }
        });
    }
View Full Code Here

Examples of net.solosky.maplefetion.event.action.FailureEvent

     if(this.proxyChatDialog instanceof LiveV2ChatDialog){
       LiveV2ChatDialog dialog = (LiveV2ChatDialog) this.proxyChatDialog;
       dialog.sendNudgeState(listener);
     }else{
       if(listener!=null)
         listener.fireEevent(new FailureEvent(FailureType.NOT_SUPPORTED));
     }
  }
View Full Code Here

Examples of net.solosky.maplefetion.event.action.FailureEvent

    if(this.proxyChatDialog instanceof LiveV2ChatDialog){
       LiveV2ChatDialog dialog = (LiveV2ChatDialog) this.proxyChatDialog;
       dialog.sendInputState(listener);
     }else{
       if(listener!=null)
         listener.fireEevent(new FailureEvent(FailureType.NOT_SUPPORTED));
     }

  }
View Full Code Here

Examples of net.solosky.maplefetion.event.action.FailureEvent

      serverDialog.userAuth(presence, listener);
      ActionEvent event = future.waitActionEventWithoutException();
      if(event.getEventType()==ActionEventType.SUCCESS){
        this.updateLoginState(LoginState.SIPC_REGISGER_SUCCESS, null);
      }else if(event.getEventType()==ActionEventType.FAILURE){
        FailureEvent evt = (FailureEvent) event;
        FailureType type =  evt.getFailureType();
        if(type==FailureType.REGISTER_FORBIDDEN){
          throw new LoginException(LoginState.SIPC_ACCOUNT_FORBIDDEN); //帐号限制登录,可能存在不安全因素,请修改密码后再登录
        }else if(type==FailureType.AUTHORIZATION_FAIL){
          throw new LoginException(LoginState.SIPC_AUTH_FAIL);      //登录验证失败
        }else{
View Full Code Here

Examples of net.solosky.maplefetion.event.action.FailureEvent

                println("发送成功,消息已通过服务直接发送到对方客户端!");
              }
              break;
             
            case FAILURE:
              FailureEvent evt2 = (FailureEvent) event;
              switch(evt2.getFailureType()){
                case BUDDY_NOT_FOUND:
                  println("发送失败, 该用户可能不是你好友,请尝试添加该用户为好友后再发送消息。");
                  break;
                case USER_NOT_FOUND:
                  println("发送失败, 该用户不是移动用户。");
View Full Code Here

Examples of net.solosky.maplefetion.event.action.FailureEvent

              println("发送成功,消息已通过短信发送到对方手机!");
            }else if(evt.isSendToClient()){
              println("发送成功,消息已通过服务直接发送到对方客户端!");
            }
           }else if(event.getEventType()==ActionEventType.FAILURE){
             FailureEvent evt2 = (FailureEvent) event;
            switch(evt2.getFailureType()){
              case BUDDY_NOT_FOUND:
                System.out.println("发送失败, 该用户可能不是你好友,请尝试添加该用户为好友后再发送消息。");
                break;
              case USER_NOT_FOUND:
                System.out.println("发送失败, 该用户不是移动用户。");
View Full Code Here

Examples of net.solosky.maplefetion.event.action.FailureEvent

              System.out.println("发送成功,消息已通过服务直接发送到对方客户端!");
            }
            break;
           
          case FAILURE:
            FailureEvent evt2 = (FailureEvent) event;
            switch(evt2.getFailureType()){
              case BUDDY_NOT_FOUND:
                System.out.println("发送失败, 该用户可能不是你好友,请尝试添加该用户为好友后再发送消息。");
                break;
              case USER_NOT_FOUND:
                System.out.println("发送失败, 该用户不是移动用户。");
View Full Code Here

Examples of net.solosky.maplefetion.event.action.FailureEvent

      if(this.state==ClientState.LOGGING) {
        this.cancelLogin();
      }else {
        ActionEventListener listener = event.getTargetListener();
        if(listener!=null) {
          listener.fireEevent(new FailureEvent(FailureType.VERIFY_CANCELED));
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.