Package net.solosky.maplefetion.client.response

Examples of net.solosky.maplefetion.client.response.GetContactInfoResponseHandler


        //添加至列表中
        this.context.getFetionStore().addBuddy(from);
       
        //如果是飞信好友,还需要获取这个陌生人的信息
        SipcRequest request = this.dialog.getMessageFactory().createGetContactInfoRequest(notify.getFrom());
        request.setResponseHandler(new GetContactInfoResponseHandler(context, dialog, from ,null));
        this.dialog.process(request);
      }
    
      //查找这个好友的聊天代理对话
      ChatDialogProxy chatDialogProxy = this.context.getChatDialogProxyFactoy().create(from);
View Full Code Here


   */
  public void retireBuddyInfo(Buddy buddy, ActionEventListener listener)
  {
    this.ensureOpened();
    SipcRequest request = this.messageFactory.createGetContactInfoRequest(buddy.getUri());
    request.setResponseHandler(new GetContactInfoResponseHandler(context, this, buddy, listener));
    this.process(request);
  }
View Full Code Here

      BeanHelper.setValue(buddy, "relation", Relation.STRANGER);
      context.getFetionStore().addBuddy(buddy);
      //如果是飞信好友,获取陌生人的信息
      if(buddy instanceof Buddy) {
          SipcRequest request = this.dialog.getMessageFactory().createGetContactInfoRequest(uri);
          request.setResponseHandler(new GetContactInfoResponseHandler(context, dialog, ((Buddy)buddy),null));
          dialog.process(request);
      }
      //通知监听器
      this.tryFireNotifyEvent(new BuddyApplicationEvent( buddy, desc));
    logger.debug("Recived a buddy application:"+desc);
View Full Code Here

          //如果当前好友关系是没有确认,而返回的好友是确认了,表明好友同意了你添加好友的请求
          if(relation==Relation.BUDDY && buddy.getRelation()!=Relation.BUDDY) {
           
            //这里还需要获取好友的详细信息
            SipcRequest request = dialog.getMessageFactory().createGetContactInfoRequest(buddy.getUri());
            request.setResponseHandler(new GetContactInfoResponseHandler(context, dialog, ((Buddy) buddy),null));
          dialog.process(request);
         
          }else if(relation==Relation.DECLINED) {  //对方拒绝了请求
            logger.debug("buddy declined your buddy request:"+buddy.getDisplayName());
            this.tryFireNotifyEvent(new BuddyConfirmedEvent( buddy, false))//通知监听器
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.client.response.GetContactInfoResponseHandler

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.