public void AddFriend(QQFriend friend) { if (CategoryDic.ContainsKey(friend.CategoryIndex)) { CategoryDic[friend.CategoryIndex].AddFriend(friend); } else { AddCategory(new Category() { Index = friend.CategoryIndex }); AddFriend(friend); } FriendDic[friend.Uin] = friend; }
public FriendMessage(QQFriend friend, string text) : this() { Friend = friend; Contents.Add(new TextItem(text)); Contents.Add(new FontItem()); }
public GetFriendQQNumberAction(IQQContext context, QQFriend friend, ActionEventListener listener = null) : base(context, listener) { _friend = friend; }
public void AddFriend(QQFriend friend) { Friends[friend.Uin] = friend; }