Package net.solosky.maplefetion.event.action

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


     * @throws SystemException
     */
    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);
    }
View Full Code Here


   * @throws TransferException
   */
  public ActionEventFuture sendChatMessage(Message message)
  {
    ActionEventFuture future = new ActionEventFuture();
    this.sendChatMessage(message, new FutureActionEventListener(future));
    return future;
  }
View Full Code Here

   * @return 操作等待对象
   */
  public ActionEventFuture sendSMSMessage(Message message)
  {
    ActionEventFuture future = new ActionEventFuture();
    this.sendSMSMessage(message, new FutureActionEventListener(future));
    return future;
  }
View Full Code Here

     * @see net.solosky.maplefetion.client.dialog.ChatDialog#sendChatMessage(net.solosky.maplefetion.bean.Message)
     */
    public ActionEventFuture sendChatMessage(Message message)
    {
      ActionEventFuture future = new ActionEventFuture();
      this.sendChatMessage(message, new FutureActionEventListener(future));
      return future;
    }
View Full Code Here

      this.updateLoginState(LoginState.SIPC_REGISTER_DOING, null);
    ServerDialog serverDialog = this.context.getDialogFactory().createServerDialog();
        serverDialog.openDialog();
       
        ActionEventFuture future = new ActionEventFuture();
      ActionEventListener listener = new FutureActionEventListener(future);
     
      //注册服务器
      serverDialog.register(presence, listener);
      Dialog.assertActionEvent(future.waitActionEventWithException(), ActionEventType.SUCCESS);
     
View Full Code Here

     * @throws IllegalResponseException
     */
    private void getContactsInfo() throws IllegalResponseException, RequestTimeoutException, TransferException, SystemException, InterruptedException
    {
      ActionEventFuture future = new ActionEventFuture();
      ActionEventListener listener = new FutureActionEventListener(future);
      ServerDialog dialog = this.context.getDialogFactory().getServerDialog();
    this.updateLoginState(LoginState.GET_CONTACTS_INFO_DOING, null);
   
       
        //订阅异步通知
View Full Code Here

     * @throws IllegalResponseException
     */
    private void getGroupsInfo() throws IllegalResponseException, RequestTimeoutException, TransferException, SystemException, InterruptedException
    {
      ActionEventFuture future = new ActionEventFuture();
      ActionEventListener listener = new FutureActionEventListener(future);
      ServerDialog dialog = this.context.getDialogFactory().getServerDialog();
      StoreVersion storeVersion   = this.context.getFetionStore().getStoreVersion();
      StoreVersion userVersion    = this.context.getFetionUser().getStoreVersion();

      this.updateLoginState(LoginState.GET_GROUPS_INFO_DOING, null);
View Full Code Here

   */
  public ActionEventFuture sendChatMessage(Buddy toBuddy, Message message)
  {
    this.ensureOnline();
    ActionEventFuture future = new ActionEventFuture();
    this.sendChatMessage(toBuddy, message, new FutureActionEventListener(future));
    return future;
  }
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.event.action.FutureActionEventListener

Copyright © 2018 www.massapicom. 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.