Example #1
0
 /// <summary>
 /// 发送屏闪
 /// </summary>
 /// <param name="receiver"></param>
 public void SendVibration(int receiver)
 {
     //byte[]
     SendIMPacket packet = new SendIMPacket(QQClient);
     packet.Receiver = receiver;
     packet.MessageType = NormalIMType.Vibration;
     QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name);
 }
Example #2
0
 /// <summary>
 /// 发送普通信息
 /// </summary>
 /// <param name="receiver">The receiver.</param>
 /// <param name="message">The message.</param>
 /// <param name="totalFragments">The total fragments.总分块数</param>
 /// <param name="fragementSequence">The fragement sequence.当前当块序号</param>
 /// <param name="fontSytle">The font sytle.</param>
 public void SendIM(int receiver, byte[] message, int totalFragments,
     int fragementSequence, FontStyle fontSytle)
 {
     SendIMPacket packet = new SendIMPacket(QQClient);
     packet.Receiver = receiver;
     packet.Message = message;
     packet.TotalFragments = totalFragments;
     packet.FragmentSequence = fragementSequence;
     packet.FontStyle = fontSytle;
     QQClient.PacketManager.SendPacket(packet, QQPort.Main.Name);
 }