예제 #1
0
 /// <summary>成批得到群成员名片
 /// Gets the card batch.
 /// <remarks>注意,当ClusterCommandReplyPacket的NextStart值为0,表示已经得到所有的群成员名片,否则它的值就是下一个成员的开始下标
 /// </remarks>
 /// </summary>
 /// <param name="clusterId">The cluster id.</param>
 /// <param name="start">The start.</param>
 public void GetCardBatch(int clusterId, int start)
 {
     ClusterGetCardBatchPacket packet = new ClusterGetCardBatchPacket(QQClient);
     packet.ClusterId = clusterId;
     packet.Start = start;
     QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name);
 }
예제 #2
0
 /// <summary>
 /// Processes the cluster get card batch reply.
 /// </summary>
 /// <param name="inPacket">The in packet.</param>
 /// <param name="outPacket">The out packet.</param>
 private void ProcessClusterGetCardBatchReply(ClusterCommandReplyPacket inPacket, ClusterGetCardBatchPacket outPacket)
 {
     QQEventArgs<ClusterCommandReplyPacket, ClusterGetCardBatchPacket> e = new QQEventArgs<ClusterCommandReplyPacket, ClusterGetCardBatchPacket>(client, inPacket, outPacket);
     if (inPacket.ReplyCode == ReplyCode.OK)
     {
         client.ClusterManager.OnBatchGetCardSuccessed(e);
     }
     else
     {
         client.ClusterManager.OnBatchGetCardFailed(e);
     }
 }