示例#1
0
 /// <summary>查找群
 /// Searches the cluster by id.
 /// </summary>
 /// <param name="externalId">The external id.</param>
 public void SearchClusterById(int externalId)
 {
     ClusterSearchPacket packet = new ClusterSearchPacket(QQClient);
     packet.ExternalId = externalId;
     packet.SearchType = ClusterSearchType.By_ID;
     QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name);
 }
 /// <summary>
 /// Processes the cluster search reply.
 /// </summary>
 /// <param name="inPacket">The in packet.</param>
 /// <param name="outPacket">The out packet.</param>
 private void ProcessClusterSearchReply(ClusterCommandReplyPacket inPacket, ClusterSearchPacket outPacket)
 {
     QQEventArgs<ClusterCommandReplyPacket, ClusterSearchPacket> e = new QQEventArgs<ClusterCommandReplyPacket, ClusterSearchPacket>(client, inPacket, outPacket);
     if (inPacket.ReplyCode == ReplyCode.OK)
     {
         client.ClusterManager.OnSearchClusterSuccessed(e);
     }
     else
         client.ClusterManager.OnSearchClusterFailed(e);
 }