public void Update(MumbleProto.Version message) { ServerOS = message.os; ServerOSVersion = message.os; ServerRelease = message.release; serverVersion = message.version; }
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); }
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; } }
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); } }
public void Update(MumbleProto.ChannelState message) { }
public void Update(MumbleProto.UserRemove message) { client.Channels.Remove(this.Session); Channel.RemoveLocalUser(this); }