/// <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), });
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);
/// <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 }, });