FivePD API
Models

Rank

Represents the 'divisions' table.

This model represents the database table fivepd_ranks. When modifying any properties of this model, ensure that you have saved the changes using the DatabaseContext.

Properties

Id

Gets or sets the identifier.

Type: int

Global

Gets or sets a value indicating whether this rank is global or per department.

Type: bool

RequiredXp

Gets or sets the required minimum experience points for the progression system.

Type: int

Name

Gets or sets the name.

Type: string

Permission

Gets or sets the permissions of this rank.

Type: Permissions

Users

Gets or sets the users of this ranks.

Type: IList<User>

DepartmentRanks

Gets or sets the DepartmentRanks.

Type: IList<DepartmentRank>

Permissions

Defines the actions a given Rank can do.

Type: class

Kick

Type: bool

SetRank

Gets or sets a value indicating whether the user has the ability to set the rank of other players in the department.

Type: bool

SetDivision

Gets or sets a value indicating whether the user has the ability to set the callsign of other players in the department.

Type: bool

DepartmentManager

Gets or sets a value indicating whether the user has the ability to change everything in a department.

Type: bool