Examples of waitActionEventWithException()


Examples of net.solosky.maplefetion.event.action.ActionEventFuture.waitActionEventWithException()

     */
    private void invite() throws IllegalResponseException, RequestTimeoutException, InterruptedException, TransferException, SystemException
    {
      ActionEventFuture future = new ActionEventFuture();
      this.inviteBuddy(this.mainBuddy, new FutureActionEventListener(future));
      assertActionEvent(future.waitActionEventWithException(), ActionEventType.SUCCESS);
    }
   
    /**
     * 离开对话
     * @throws TransferException
View Full Code Here

Examples of net.solosky.maplefetion.event.action.ActionEventFuture.waitActionEventWithException()

        ActionEventFuture future = new ActionEventFuture();
      ActionEventListener listener = new FutureActionEventListener(future);
     
      //注册服务器
      serverDialog.register(presence, listener);
      Dialog.assertActionEvent(future.waitActionEventWithException(), ActionEventType.SUCCESS);
     
      //用户验证
      future.clear();
      serverDialog.userAuth(presence, listener);
      ActionEvent event = future.waitActionEventWithoutException();
View Full Code Here

Examples of net.solosky.maplefetion.event.action.ActionEventFuture.waitActionEventWithException()

       
        //订阅异步通知
    if(this.context.getFetionStore().getBuddyList().size()>0){
          future.clear();
          dialog.subscribeBuddyNotify(listener);
          Dialog.assertActionEvent(future.waitActionEventWithException(), ActionEventType.SUCCESS);
    }
       
        this.updateLoginState(LoginState.GET_CONTACTS_INFO_SUCCESS, null);
    }
   
View Full Code Here

Examples of net.solosky.maplefetion.event.action.ActionEventFuture.waitActionEventWithException()

      this.updateLoginState(LoginState.GET_GROUPS_INFO_DOING, null);
        //获取群列表
        future.clear();
        dialog.getGroupList(listener);
        Dialog.assertActionEvent(future.waitActionEventWithException(), ActionEventType.SUCCESS);
       
    //如果群列表为空,就不发送下面的一些请求了
    FetionStore store = this.context.getFetionStore();
    if(store.getGroupList().size()==0){
      logger.debug("The group list is empty, group dialog login is skipped.");
View Full Code Here

Examples of net.solosky.maplefetion.event.action.ActionEventFuture.waitActionEventWithException()

      //更新存储版本
      storeVersion.setGroupVersion(userVersion.getGroupVersion());
          //获取群信息
          future.clear();
          dialog.getGroupsInfo(this.context.getFetionStore().getGroupList(), listener);
          Dialog.assertActionEvent(future.waitActionEventWithException(), ActionEventType.SUCCESS);
       
          //获取群成员
          future.clear();
          dialog.getMemberList(this.context.getFetionStore().getGroupList(), listener);
          Dialog.assertActionEvent(future.waitActionEventWithException(), ActionEventType.SUCCESS);
View Full Code Here

Examples of net.solosky.maplefetion.event.action.ActionEventFuture.waitActionEventWithException()

          Dialog.assertActionEvent(future.waitActionEventWithException(), ActionEventType.SUCCESS);
       
          //获取群成员
          future.clear();
          dialog.getMemberList(this.context.getFetionStore().getGroupList(), listener);
          Dialog.assertActionEvent(future.waitActionEventWithException(), ActionEventType.SUCCESS);
         
          storeVersion.setGroupVersion(userVersion.getGroupVersion());
        }
       
      this.updateLoginState(LoginState.GET_GROUPS_INFO_SUCCESS,null);
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.