Skip to content

Commit

Permalink
Merge pull request #40 from Meetsch/master
Browse files Browse the repository at this point in the history
(feature) Support for Channel Position and Description.
  • Loading branch information
martindevans authored Jun 23, 2019
2 parents f145fed + 4b4f571 commit e1619af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MumbleSharp/BasicMumbleProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ protected virtual void ChannelLeft(Channel channel)
/// <param name="channelState"></param>
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;
Expand Down
2 changes: 2 additions & 0 deletions MumbleSharp/Model/Channel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down

0 comments on commit e1619af

Please sign in to comment.