/// <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); }
/// <summary> /// 发送频道消息 /// </summary> /// <param name="message"></param> public void SendToChannel(SendChannelMessage message) { Send(PackageCategory.SendToChannel, message); }