示例#1
0
 public R <PermOverview[], CommandError> PermOverview(ClientDbIdT clientDbId, ChannelIdT channelId, params Ts3Permission[] permission)
 => SendHybrid <PermOverview>(new Ts3Command("permoverview")
 {
     { "cldbid", clientDbId },
     { "cid", channelId },
     Ts3PermissionHelper.GetAsMultiParameter(Deserializer.PermissionTransform, permission)
 }, NotificationType.PermOverview);
 /// <summary>Adds a set of specified permissions to the server group specified with <paramref name="serverGroupId"/>.
 /// Multiple permissions can be added by providing the four parameters of each permission.</summary>
 public CmdR ServerGroupAddPerm(ServerGroupIdT serverGroupId, Ts3Permission[] permission, int[] permissionValue,
                                bool[] permissionNegated, bool[] permissionSkip)
 => Send("servergroupaddperm",
         new CommandParameter("sgid", serverGroupId),
         Ts3PermissionHelper.GetAsMultiParameter(Deserializer.PermissionTransform, permission),
         new CommandMultiParameter("permvalue", permissionValue),
         new CommandMultiParameter("permnegated", permissionNegated),
         new CommandMultiParameter("permskip", permissionSkip));
示例#3
0
 /// <summary>Adds a set of specified permissions to the server group specified with <paramref name="serverGroupId"/>.
 /// Multiple permissions can be added by providing the four parameters of each permission.</summary>
 public CmdR ServerGroupAddPerm(ServerGroupIdT serverGroupId, Ts3Permission[] permission, int[] permissionValue,
                                bool[] permissionNegated, bool[] permissionSkip)
 => Send <ResponseVoid>(new Ts3Command("servergroupaddperm")
 {
     { "sgid", serverGroupId },
     { "permvalue", permissionValue },
     { "permnegated", permissionNegated },
     { "permskip", permissionSkip },
     Ts3PermissionHelper.GetAsMultiParameter(Deserializer.PermissionTransform, permission),
 });