//public void SendMessage() //{ // SendMessageToChat(userName + ": " + chatBox.text, Message.MessageType.playerMessage); // //TODO: CHANNEL NAME // //channel.SendChannelMessageWithOptions channelName, ); // SendPeerMessage(chatBox.text, new RtmWrapper.SendMessageOptions() { enableOfflineMessaging = true }); // chatBox.text = ""; //} public void SendMessageToChannel() { SendMessageToChat(userName + ": " + chatBox.text, Message.MessageType.playerMessage); //TODO: CHANNEL NAME channel.SendMessage(chatBox.text); //rtm.SendChannelMessage(channelName, text); }
public override void SendChannelMessageWithOptions(IRtmChannel channel, string channelName, string msg, SendMessageOptions smo) { if (!channels.Contains(channelName)) { Debug.LogError("You need to join the channel before you can send a message to it"); return; } channel.SendMessage(msg, smo); }
public override void SendChannelMessage(IRtmChannel channel, string channelName, string msg) { if (!channels.Contains(channelName)) { Debug.LogError("You need to join the channel before you can send a message to it"); return; } Debug.Log("send msg: " + msg); channel.SendMessage(msg); }
public override void SendChannelMessageWithOptions(IRtmChannel channel, string channelName, string msg, IRtmWrapper.SendMessageOptions smo) { channel.SendMessage(msg); }
public override void SendChannelMessage(IRtmChannel channel, string channelName, string msg) { channel.SendMessage(msg); }
private void btnSendChannelMsg_Click(object sender, EventArgs e) { channel.SendMessage(tbChannelMessage.Text); SendMessageToChat(username + " send channel message: " + tbChannelMessage.Text); }