Esempio n. 1
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();
        }
Esempio n. 2
0
 /// <summary>
 /// 改变QQ状态
 /// </summary>
 /// <param name="status">状态</param>
 /// <param name="showFakeCam">是否有摄像头</param>
 public void ChangeStatus(QQStatus status, bool showFakeCam)
 {
     OutPacket outPacket = new ChangeStatusPacket(QQClient,status, showFakeCam);
     QQClient.PacketManager.SendPacket(outPacket);
 }