Example #1
0
 public Task <R <PermOverview[], CommandError> > PermOverview(ClientDbId clientDbId, ChannelId channelId, params TsPermission[] permission)
 => SendHybrid <PermOverview>(new TsCommand("permoverview")
 {
     { "cldbid", clientDbId },
     { "cid", channelId },
     TsPermissionHelper.GetAsMultiParameter(Deserializer.PermissionTransform, permission)
 }, NotificationType.PermOverview);
Example #2
0
 /// <summary>Displays all server groups the client specified with <paramref name="clDbId"/> is currently residing in.</summary>
 public Task <R <ServerGroupsByClientId[], CommandError> > ServerGroupsByClientDbId(ClientDbId clDbId)
 => SendHybrid <ServerGroupsByClientId>(new TsCommand("servergroupsbyclientid")
 {
     { "cldbid", clDbId }
 }, NotificationType.ServerGroupsByClientId);
Example #3
0
 /// <summary>Displays detailed database information about a client including unique ID, creation date, etc.</summary>
 public Task <R <ClientDbInfo, CommandError> > ClientDbInfo(ClientDbId clientDbId)
 => Send <ClientDbInfo>(new TsCommand("clientdbinfo")
 {
     { "cldbid", clientDbId },
 }).MapToSingle();
Example #4
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 },
 });
Example #5
0
 /// <summary>Displays detailed database information about a client including unique ID, creation date, etc.</summary>
 public R <ClientDbInfo, CommandError> ClientDbInfo(ClientDbId clientDbId)
 => Send <ClientDbInfo>(new TsCommand("clientdbinfo")
 {
     { "cldbid", clientDbId },
 }).WrapSingle();