BanRequest
A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Requests.
Body of an Alta web API request to ban a user.
- Listed in Alta.Api.DataTransferModels
Constructors
| Member | What it is |
|---|---|
BanRequest() | Creates a BanRequest with default values. |
Properties
| Member | What it is |
|---|---|
BanMethod BanMethod { get; set; } | How the ban is applied. |
BanType BanType { get; set; } | Kind of ban. |
int? CallingUserIdentifier { get; set; } | Id of the user issuing the ban, if given. |
float DurationInHours { get; set; } | How long the ban lasts, in hours. |
string Reason { get; set; } | Reason given for the ban. |
List<int> Servers { get; set; } | Ids of the servers the ban covers. |
int UserIdentifier { get; set; } | Id of the user to ban. |
Used in
Members of other types that take, return or hold a BanRequest: