/// <summary>得到群成员名片 /// Gets the card. /// </summary> /// <param name="clusterId">The cluster id.</param> /// <param name="qq">The qq.</param> public void GetCard(int clusterId, int qq) { ClusterGetCardPacket packet = new ClusterGetCardPacket(QQClient); packet.ClusterId = clusterId; packet.QQ = qq; QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name); }
/// <summary> /// Processes the cluster get card reply. /// </summary> /// <param name="inPacket">The in packet.</param> /// <param name="outPacket">The out packet.</param> private void ProcessClusterGetCardReply(ClusterCommandReplyPacket inPacket, ClusterGetCardPacket outPacket) { QQEventArgs<ClusterCommandReplyPacket, ClusterGetCardPacket> e = new QQEventArgs<ClusterCommandReplyPacket, ClusterGetCardPacket>(client, inPacket, outPacket); if (inPacket.ReplyCode == ReplyCode.OK) { client.ClusterManager.OnGetCardSuccessed(e); } else { client.ClusterManager.OnGetCardFailed(e); } }