示例#1
0
        /// <summary>处理改变状态回复事件
        ///     <remark>abu 2008-03-12 </remark>
        /// </summary>
        /// <param name="packet">The packet.</param>
        private void ProcessChangeStatusReply(ChangeStatusReplyPacket inPacket, ChangeStatusPacket outPacket)
        {
            QQEventArgs <ChangeStatusReplyPacket, ChangeStatusPacket> e = new QQEventArgs <ChangeStatusReplyPacket, ChangeStatusPacket>(client, inPacket, outPacket);

            if (inPacket.ReplyCode == ReplyCode.CHANGE_STATUS_OK)
            {
                client.FriendManager.OnChangeStatusSuccessed(e);
            }
            else
            {
                client.FriendManager.OnChangeStatusFailed(e);
            }
        }
示例#2
0
        internal void ProcessChangeStatusReply(ChangeStatusReplyPacket changeStatusReplyPacket, ChangeStatusPacket changeStatusPacket)
        {
            QQEventArgs <ChangeStatusReplyPacket, ChangeStatusPacket> e = new QQEventArgs <ChangeStatusReplyPacket, ChangeStatusPacket>(QQClient, changeStatusReplyPacket, changeStatusPacket);

            if (changeStatusReplyPacket.ReplyCode == ReplyCode.CHANGE_STATUS_OK)//状态改变成功
            {
                QQClient.QQUser.Status = changeStatusPacket.Status;
                QQClient.PrivateManager.OnChangeStatusSuccessed(e);
            }
            else //状态改变失败
            {
                QQClient.PrivateManager.OnChangeStatusFailed(e);
            }
            //throw new NotImplementedException();
        }