Skip to content

Commit 19f4430

Browse files
committed
#32 Added "SubChannelIdList" property to "ChannelDeletedEventArgs"
This allows to get the IDs of deleted sub-channels
1 parent cf0ce49 commit 19f4430

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

TS3QueryLib.Core.Silverlight/Server/Notification/EventArgs/ChannelDeletedEventArgs.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
24
using TS3QueryLib.Core.CommandHandling;
35
using TS3QueryLib.Core.Common;
46

@@ -9,6 +11,7 @@ public class ChannelDeletedEventArgs : System.EventArgs, IDump
911
#region Properties
1012

1113
public int? ChannelId { get; protected set; }
14+
public List<int> SubChannelIdList { get; protected set; }
1215
public int? InvokerId { get; protected set; }
1316
public string InvokerName { get; protected set; }
1417

@@ -25,6 +28,8 @@ public ChannelDeletedEventArgs(CommandParameterGroupList commandParameterGroupLi
2528
ChannelId = commandParameterGroupList.GetParameterValue<int?>("cid");
2629
InvokerId = commandParameterGroupList.GetParameterValue<int?>("invokerid");
2730
InvokerName = commandParameterGroupList.GetParameterValue<string>("invokername");
31+
32+
SubChannelIdList = commandParameterGroupList.Skip(1).Select(pg => pg.GetParameterValue<int>("cid")).ToList();
2833
}
2934

3035
#endregion

0 commit comments

Comments
 (0)