Пример #1
0
        /// <summary>删除一个好友
        ///     <remark>abu 2008-03-12 </remark>
        /// </summary>
        /// <param name="qq">The qq.</param>
        public void DeleteFriend(int qq)
        {
            DeleteFriendPacket packet = new DeleteFriendPacket(QQUser);

            packet.To = qq;
            QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name);
        }
Пример #2
0
        /// <summary>处理删除好友的回复包
        ///     <remark>abu 2008-03-12 </remark>
        /// </summary>
        /// <param name="packet">The packet.</param>
        private void ProcessDeleteFriendReply(DeleteFriendReplyPacket inPacket, DeleteFriendPacket outPacket)
        {
            QQEventArgs <DeleteFriendReplyPacket, DeleteFriendPacket> e = new QQEventArgs <DeleteFriendReplyPacket, DeleteFriendPacket>(client, inPacket, outPacket);

            if (inPacket.ReplyCode != ReplyCode.OK)
            {
                client.FriendManager.OnDeleteFriendFailed(e);
            }
            else
            {
                client.FriendManager.OnDeleteFriendSuccessed(e);
            }
        }