Esempio n. 1
0
        /// <summary>下载好友分组
        /// Downloads the group friend.
        /// </summary>
        /// <param name="beginFrom">The begin from.起始好友号 如果是第一个包,起始好友号为0</param>
        public void DownloadGroupFriends(int beginFrom)
        {
            DownloadGroupFriendPacket packet = new DownloadGroupFriendPacket(QQUser);

            packet.BeginFrom = beginFrom;
            QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name);
        }
Esempio n. 2
0
        /// <summary>处理下载分组好友列表回复包
        /// Processes the download group friend reply.
        /// </summary>
        /// <param name="inPacket">The in packet.</param>
        /// <param name="outPacket">The out packet.</param>
        private void ProcessDownloadGroupFriendReply(DownloadGroupFriendReplyPacket inPacket, DownloadGroupFriendPacket outPacket)
        {
            QQEventArgs <DownloadGroupFriendReplyPacket, DownloadGroupFriendPacket> e = new QQEventArgs <DownloadGroupFriendReplyPacket, DownloadGroupFriendPacket>(client, inPacket, outPacket);

            if (inPacket.ReplyCode == ReplyCode.OK)
            {
                client.FriendManager.OnDownloadGroupFriendSuccessed(e);
            }
            else
            {
                client.FriendManager.OnDownloadGroupFriendFailed(e);
            }
        }