Example #1
0
        /// <summary>
        /// 发送频道消息
        /// </summary>
        /// <param name="channel"></param>
        /// <param name="content"></param>
        /// <param name="type"></param>
        public void SendToChannel(string channel, string content, int type)
        {
            var sendChannelMsg = new SendChannelMessage();

            sendChannelMsg.Content   = content;
            sendChannelMsg.ChannelID = channel;
            sendChannelMsg.Type      = type;
            Send(PackageCategory.SendToChannel, sendChannelMsg);
        }
Example #2
0
 /// <summary>
 /// 发送频道消息
 /// </summary>
 /// <param name="message"></param>
 public void SendToChannel(SendChannelMessage message)
 {
     Send(PackageCategory.SendToChannel, message);
 }