Beispiel #1
0
 /// <summary>退出群
 /// Exits the cluster.
 /// </summary>
 /// <param name="externalId">The external id.</param>
 public void ExitCluster(int externalId)
 {
     ClusterExitPacket packet = new ClusterExitPacket(QQClient);
     packet.ClusterId = externalId;
     QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name);
 }
 /// <summary>
 /// Processes the cluster exit reply.
 /// </summary>
 /// <param name="inPacket">The in packet.</param>
 /// <param name="outPacket">The out packet.</param>
 private void ProcessClusterExitReply(ClusterCommandReplyPacket inPacket, ClusterExitPacket outPacket)
 {
     QQEventArgs<ClusterCommandReplyPacket, ClusterExitPacket> e = new QQEventArgs<ClusterCommandReplyPacket, ClusterExitPacket>(client, inPacket, outPacket);
     if (inPacket.ReplyCode == ReplyCode.OK)
     {
         client.ClusterManager.OnExitClusterSuccessed(e);
     }
     else
         client.ClusterManager.OnExitClusterFailed(e);
 }