Beispiel #1
0
        //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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public override void SendChannelMessageWithOptions(IRtmChannel channel, string channelName, string msg, IRtmWrapper.SendMessageOptions smo)
 {
     channel.SendMessage(msg);
 }
Beispiel #5
0
 public override void SendChannelMessage(IRtmChannel channel, string channelName, string msg)
 {
     channel.SendMessage(msg);
 }
Beispiel #6
0
 private void btnSendChannelMsg_Click(object sender, EventArgs e)
 {
     channel.SendMessage(tbChannelMessage.Text);
     SendMessageToChat(username + " send channel message: " + tbChannelMessage.Text);
 }