OfflineSecurityApiClient
A class in Alta.Api.Client, Alta.Api.Client.HighLevel.
Offline stand-in for the security client. Bans are unavailable and every token and join is accepted.
- Listed in Alta.Api.Client
- Inherits or implements
ISecurityApiClient
Constructors
| Member | What it is |
|---|---|
OfflineSecurityApiClient() | Creates an OfflineSecurityApiClient with default values. |
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) | Throws OfflineException. |
Task DeleteBan(int banIdentifier) | Throws OfflineException. |
Task<IEnumerable<BanInfo>> GetAllBans() | Throws OfflineException. |
Task<IEnumerable<BanInfo>> GetAllBansAboutUser(int userIdentifier) | Throws OfflineException. |
Task<IEnumerable<BanInfo>> GetAllBansFromModerator(int moderatorIdentifier) | Throws OfflineException. |
async Task<bool> IsValidIdentityTokenAsync(string identityToken) | Always true. |
async Task<ServerJoinResponse> ValidateUsersJoinRequestAsync(int serverId, string ipAddress, string deviceId, string identityToken) | Always allows the join. |