ISecurityApiClient
An interface in Alta.Api.Client, Alta.Api.Client.HighLevel.
Alta web API calls for bans and identity token checks. ApiAccess.ApiClient.SecurityClient.
- Listed in Alta.Api.Client
- Derived types
OfflineSecurityApiClient,SecurityApiClient
Methods
| Member | What it is |
|---|---|
Task<BanInfo> BanUserAsync(int userId, string reason, float durationInHours, BanType banType, BanMethod method, List<int> servers = null, int? callingUserIdentifier = null) | Bans a user for a number of hours, of a type and method, optionally on listed servers. |
Task DeleteBan(int banIdentifier) | Removes a ban by id. |
Task<IEnumerable<BanInfo>> GetAllBans() | Lists every ban. |
Task<IEnumerable<BanInfo>> GetAllBansAboutUser(int userIdentifier) | Lists the bans on a user. |
Task<IEnumerable<BanInfo>> GetAllBansFromModerator(int moderatorIdentifier) | Lists the bans a moderator made. |
Task<bool> IsValidIdentityTokenAsync(string identityToken) | Asks the API whether an identity token is valid. |
Used in
Members of other types that take, return or hold a ISecurityApiClient: