//如果当前好友关系是没有确认,而返回的好友是确认了,表明好友同意了你添加好友的请求
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);