Beispiel #1
0
 /// <summary>修改群名片
 /// Modifies the card.
 /// </summary>
 /// <param name="clusterId">The cluster id.</param>
 /// <param name="card">The card.</param>
 public void ModifyCard(int clusterId, Card card)
 {
     ClusterModifyCardPacket packet = new ClusterModifyCardPacket(QQClient);
     packet.ClusterId = clusterId;
     packet.Card = card;
     QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name);
 }
 /// <summary>
 /// Processes the modify card reply.
 /// </summary>
 /// <param name="inPacket">The in packet.</param>
 /// <param name="outPacket">The out packet.</param>
 private void ProcessModifyCardReply(ClusterCommandReplyPacket inPacket, ClusterModifyCardPacket outPacket)
 {
     QQEventArgs<ClusterCommandReplyPacket, ClusterModifyCardPacket> e = new QQEventArgs<ClusterCommandReplyPacket, ClusterModifyCardPacket>(client, inPacket, outPacket);
     if (inPacket.ReplyCode == ReplyCode.OK)
     {
         client.ClusterManager.OnModifyCardSuccssed(e);
     }
     else
     {
         client.ClusterManager.OnModifyCardFailed(e);
     }
 }