Skip to main content

BanInfo

A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Responses.

API model for a ban on a user, IP address or device, with its reason, scope and end time.

Constructors​

MemberWhat it is
BanInfo()Creates a BanInfo with default values.

Properties​

MemberWhat it is
BanType BanType { get; set; }What kind of ban this is (for example server or global).
DateTime CreatedAt { get; set; }When the ban was made.
int CreatedBy { get; set; }User id of whoever made the ban.
string DeviceIdentifier { get; set; }Banned device id, if the ban is by device.
DateTime EndTime { get; set; }When the ban runs out.
int Identifier { get; set; }The ban's id.
IPAddress IpAddress { get; set; }Banned IP address, if the ban is by IP.
string Reason { get; set; }Reason given for the ban.
List<int> Servers { get; set; }Ids of the servers the ban applies to.
int? UserIdentifier { get; set; }Banned user's id, or null for an IP or device ban.

Used in​

Members of other types that take, return or hold a BanInfo: