/// <summary>改变自身状态 /// <remark>abu 2008-03-12 </remark> /// </summary> /// <param name="status">The status.</param> /// <param name="showFakeCam">if set to <c>true</c> [show fake cam].</param> public void ChangeStatus(QQStatus status, bool showFakeCam) { QQUser.Status = status; ChangeStatusPacket packet = new ChangeStatusPacket(QQUser); packet.ShowFakeCam = showFakeCam; QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name); }
/// <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); } }
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(); }
/// <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); }