예제 #1
0
 public void Update(MumbleProto.Version message)
 {
     ServerOS = message.os;
     ServerOSVersion = message.os;
     ServerRelease = message.release;
     serverVersion = message.version;
 }
예제 #2
0
        public MumbleUser(MumbleClient client, MumbleProto.UserState message)
        {
            this.client = client;
            Name = message.name;
            Session = message.session;

            client.Users.Add(Session, this);

            this.Channel = client.Channels[message.channel_id];

            this.Channel.AddLocalUser(this);
        }
예제 #3
0
        public void Update(MumbleProto.UserState message)
        {
            if (message.channel_idSpecified && message.channel_id != Channel.ID)
            {
                Channel.RemoveLocalUser(this);
                Channel = client.Channels[message.channel_id];
                Channel.AddLocalUser(this);
            }

            if (message.deafSpecified) { Deaf = message.deaf; }
            if (message.self_deafSpecified) { DeafSelf = message.self_deaf; }
            if (message.muteSpecified) { Mute = message.mute; }
            if (message.self_muteSpecified) { MuteSelf = message.self_mute; }
        }
예제 #4
0
        public MumbleChannel(MumbleClient client, MumbleProto.ChannelState message)
        {
            this.client = client;

            ID = message.channel_id;
            Name = message.name;

            client.Channels.Add(ID, this);
            client.Channels.TryGetValue(message.parent, out parentChannel);

            if (IsRoot())
            {
                client.RootChannel = this;
            }
            else
            {
                parentChannel.subChannels.Add(this);
            }
        }
예제 #5
0
        public void Update(MumbleProto.ChannelState message)
        {

        }
예제 #6
0
 public void Update(MumbleProto.UserRemove message)
 {
     client.Channels.Remove(this.Session);
     Channel.RemoveLocalUser(this);
 }