Package net.solosky.maplefetion.event.notify

Examples of net.solosky.maplefetion.event.notify.BuddyConfirmedEvent


          //如果当前好友关系是没有确认,而返回的好友是确认了,表明好友同意了你添加好友的请求
          if(relation==Relation.BUDDY && buddy.getRelation()!=Relation.BUDDY) {
           
            //因为这里是手机好友,没有详细信息,故不再获取详细信息
            logger.debug("Mobile buddy agreed your buddy request:"+buddy.getFetionId());
            this.tryFireNotifyEvent(new BuddyConfirmedEvent(buddy, true));    //通知监听器
           
          }else if(relation==Relation.DECLINED) {  //对方拒绝了请求
           
            logger.debug("buddy declined your buddy request:"+buddy.getDisplayName());
            this.tryFireNotifyEvent(new BuddyConfirmedEvent(buddy, false))//通知监听器
           
          }else {}

            //buddy.setUserId(Integer.parseInt(e.getAttributeValue("user-id")));
          BeanHelper.setValue(buddy, "relation", relation);
View Full Code Here


            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))//通知监听器
          }else {}

          //buddy.setUserId(Integer.parseInt(e.getAttributeValue("user-id")));
          buddy.setRelation(relation);
         
View Full Code Here

        BuddyMessageEvent e2 = (BuddyMessageEvent) event;
        this.buddyMessageRecived(e2.getBuddy(), e2.getMessage(), e2.getDialogProxy());
        break;
       
      case BUDDY_CONFIRMED:
        BuddyConfirmedEvent e3 = (BuddyConfirmedEvent) event;
        this.buddyConfirmed(e3.getBuddy(), e3.isAgreed());
        break;
       
      case BUDDY_PRESENCE:
        BuddyPresenceEvent e4 = (BuddyPresenceEvent) event;
        this.buddyPresenceChanged(e4.getBuddy());
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.event.notify.BuddyConfirmedEvent

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.