From 4b4f57177182e6cf94b86d26418a7dec2b94df4d Mon Sep 17 00:00:00 2001 From: Michel Bagnol Date: Sat, 22 Jun 2019 22:18:47 +0200 Subject: [PATCH] (feature) Support for Channel Position and Description. --- MumbleSharp/BasicMumbleProtocol.cs | 7 ++++++- MumbleSharp/Model/Channel.cs | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/MumbleSharp/BasicMumbleProtocol.cs b/MumbleSharp/BasicMumbleProtocol.cs index 3b14011..6bd28dc 100644 --- a/MumbleSharp/BasicMumbleProtocol.cs +++ b/MumbleSharp/BasicMumbleProtocol.cs @@ -125,7 +125,12 @@ protected virtual void ChannelLeft(Channel channel) /// public virtual void ChannelState(ChannelState channelState) { - var channel = ChannelDictionary.AddOrUpdate(channelState.ChannelId, i => new Channel(this, channelState.ChannelId, channelState.Name, channelState.Parent) { Temporary = channelState.Temporary }, + var channel = ChannelDictionary.AddOrUpdate(channelState.ChannelId, i => new Channel(this, channelState.ChannelId, channelState.Name, channelState.Parent) + { + Temporary = channelState.Temporary, + Description = channelState.Description, + Position = channelState.Position + }, (i, c) => { c.Name = channelState.Name; diff --git a/MumbleSharp/Model/Channel.cs b/MumbleSharp/Model/Channel.cs index ea79571..05b54ea 100644 --- a/MumbleSharp/Model/Channel.cs +++ b/MumbleSharp/Model/Channel.cs @@ -16,6 +16,8 @@ public class Channel public bool Temporary { get; set; } public string Name { get; set; } + public string Description { get; set; } + public int Position { get; set; } public uint Id { get; private set; } public uint Parent { get; private set; }