Esempio n. 1
0
 public void HandleMessage(MumbleClient client)
 {
     if (!client.Channels.TryGetValue(channel_id, out var channel))
     {
         channel = new MumbleChannel(client, this);
     }
     channel.Update(this);
 }
Esempio n. 2
0
 public void SendTextMessageToChannel(string message, MumbleChannel channel, bool recursive)
 {
     if (recursive)
     {
         SendTextMessage(message, null, Enumerable.Repeat(channel, 1), null);
     }
     else
     {
         SendTextMessage(message, Enumerable.Repeat(channel, 1), null, null);
     }
 }
Esempio n. 3
0
        public void SendUserState(MumbleChannel channel)
        {
            var message = new UserState();

            if (channel != null)
            {
                message.channel_id = channel.Id;
            }

            MumbleWrite(message);
        }
Esempio n. 4
0
 public void SendTextMessageToChannel(string message, MumbleChannel channel, bool recursive)
 {
     if (recursive)
     {
         SendTextMessage(message, null, Enumerable.Repeat(channel, 1), null);
     }
     else
     {
         SendTextMessage(message, Enumerable.Repeat(channel, 1), null, null);
     }
 }
Esempio n. 5
0
 public void SwitchChannel(MumbleChannel channel)
 {
     SendUserState(channel);
 }
Esempio n. 6
0
        public void HandleMessage(MumbleClient client)
        {
            MumbleChannel channel;
            if (!client.Channels.TryGetValue(channel_id, out channel))
            {
                channel = new MumbleChannel(client, this);
            }
            channel.Update(this);

        }
Esempio n. 7
0
 public void SwitchChannel(MumbleChannel channel)
 {
     SendUserState(channel);
 }