Highscores

@Serializable
data class Highscores(val world: String?, val category: HighscoresCategory, val vocation: HighscoresProfession, val worldTypes: Set<PvpType>, val battlEyeType: HighscoresBattlEyeType, val lastUpdated: Instant, val currentPage: Int, val totalPages: Int, val resultsCount: Int, val entries: List<HighscoresEntry>) : PaginatedWithUrl<HighscoresEntry> (source)

The Tibia highscores, containing the highest levels of a given category.

Constructors

Link copied to clipboard
constructor(world: String?, category: HighscoresCategory, vocation: HighscoresProfession, worldTypes: Set<PvpType>, battlEyeType: HighscoresBattlEyeType, lastUpdated: Instant, currentPage: Int, totalPages: Int, resultsCount: Int, entries: List<HighscoresEntry>)

Properties

Link copied to clipboard

The BattlEye type of worlds to show for global highscores.

Link copied to clipboard

The displayed highscores category.

Link copied to clipboard
open override val currentPage: Int

The currently viewed page.

Link copied to clipboard
open override val entries: List<HighscoresEntry>

The entries in this page.

Link copied to clipboard
val lastUpdated: Instant

The time when the currently displayed results were last updated.

Link copied to clipboard
open val nextPageUrl: String?

Get the URL to the next page if there is any.

Link copied to clipboard

Get the URL to the previous page if there is any.

Link copied to clipboard
open override val resultsCount: Int

The total number of entries across all pages.

Link copied to clipboard
open override val totalPages: Int

The total number of pages.

Link copied to clipboard
val url: String

The URL to these highscores.

Link copied to clipboard

The selected vocation filter for the entries.

Link copied to clipboard

The world the highscores belong to, or null if these are global highscores.

Link copied to clipboard

The selected world types to show for global highscores.

Functions

Link copied to clipboard
open override fun getPageUrl(page: Int): String

Get the URL to a specific page.