Пример #1
0
 /// <summary>发送加入群请求信息
 /// Requests the join cluster.
 /// </summary>
 /// <param name="clusterId">The cluster id.</param>
 /// <param name="message">The message.</param>
 public void RequestJoinCluster(int clusterId, string message)
 {
     ClusterAuthPacket packet = new ClusterAuthPacket(QQClient);
     packet.Type = (int)ClusterAuth.Request;
     packet.ClusterId = clusterId;
     packet.Message = message;
     QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name);
 }
Пример #2
0
 /// <summary>处理认证信息发送的回复包
 /// Processes the cluster join auth reply.
 /// </summary>
 /// <param name="inPacket">The in packet.</param>
 /// <param name="outPacket">The out packet.</param>
 private void ProcessClusterJoinAuthReply(ClusterCommandReplyPacket inPacket, ClusterAuthPacket outPacket)
 {
     QQEventArgs<ClusterCommandReplyPacket, ClusterAuthPacket> e = new QQEventArgs<ClusterCommandReplyPacket, ClusterAuthPacket>(client, inPacket, outPacket);
     if (inPacket.ReplyCode == ReplyCode.OK)
     {
         client.ClusterManager.OnSendJoinClusterAuthSuccessed(e);
     }
     else
     {
         client.ClusterManager.OnSendJoinClusterAuthFailed(e);
     }
 }