Beispiel #1
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(ServerGroupId serverGroupId, TsPermission[] permission, int[] permissionValue,
                                bool[] permissionNegated, bool[] permissionSkip)
 => SendVoid(new TsCommand("servergroupaddperm")
 {
     { "sgid", serverGroupId },
     { "permvalue", permissionValue },
     { "permnegated", permissionNegated },
     { "permskip", permissionSkip },
     TsPermissionHelper.GetAsMultiParameter(Deserializer.PermissionTransform, permission),
 });
Beispiel #2
0
 public Task <R <ServerGroupClientList[], CommandError> > ServerGroupClientList(ServerGroupId serverGroupId, bool getNames = false)
 => SendHybrid <ServerGroupClientList>(new TsCommand("servergroupclientlist")
 {
     { "sgid", serverGroupId },
     { getNames ? new CommandOption("names") : null }
 }, NotificationType.ServerGroupClientList);
Beispiel #3
0
 /// <summary>Removes a client specified with cldbid from the server group specified with <paramref name="serverGroupId"/>.</summary>
 public CmdR ServerGroupDelClient(ServerGroupId serverGroupId, ClientDbId clientDbId)
 => SendVoid(new TsCommand("servergroupdelclient")
 {
     { "sgid", serverGroupId },
     { "cldbid", clientDbId },
 });