SecurityApiClient
A class in Alta.Api.Client, Alta.Api.Client.HighLevel.
Online client for bans and identity token checks. Reached as ApiAccess.ApiClient.SecurityClient; calls Alta's web API, which no longer answers.
- Listed in Alta.Api.Client
- Inherits or implements
HighLevelApiClientBase,ISecurityApiClient
Constructors
1 private and internal constructor
| Member | What it is |
|---|---|
internal SecurityApiClient(IHighLevelApiClientManager clientManager) | Creates a SecurityApiClient from clientManager. |
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, optionally only on some servers, with type, method and reason. |
Task DeleteBan(int banIdentifier) | Removes a ban by its ID. |
Task<IEnumerable<BanInfo>> GetAllBans() | Lists every ban. |
Task<IEnumerable<BanInfo>> GetAllBansAboutUser(int userIdentifier) | Lists the bans against one user. |
Task<IEnumerable<BanInfo>> GetAllBansFromModerator(int moderatorIdentifier) | Lists the bans one moderator issued. |
async Task<bool> IsValidIdentityTokenAsync(string identityToken) | Asks the API whether an identity token is valid. |