Leaderboard

@Serializable
data class Leaderboard(val world: String, val rotation: LeaderboardRotation, val availableRotations: List<LeaderboardRotation>, val lastUpdated: Instant?, val currentPage: Int, val totalPages: Int, val resultsCount: Int, val entries: List<BaseLeaderboardEntry>) : PaginatedWithUrl<BaseLeaderboardEntry> (source)

The Tibia Drome leaderboards of a world.

Constructors

Link copied to clipboard
constructor(world: String, rotation: LeaderboardRotation, availableRotations: List<LeaderboardRotation>, lastUpdated: Instant?, currentPage: Int, totalPages: Int, resultsCount: Int, entries: List<BaseLeaderboardEntry>)

Properties

Link copied to clipboard

The rotations that are available to view.

Link copied to clipboard
open override val currentPage: Int

The currently viewed page.

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

The entries in this page.

Link copied to clipboard
val lastUpdated: Instant?

The time when the leaderboard was last updated. Only available for the current rotation.

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

The rotation of these leaderboards.

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 leaderboards.

Link copied to clipboard

The name of the world.

Functions

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

Get the URL to a specific page.