ForumBoard

@Serializable
data class ForumBoard(val name: String, val boardId: Int, val sectionId: Int, val section: String, val threadAge: Int, val announcements: List<AnnouncementEntry>, val currentPage: Int, val totalPages: Int, val resultsCount: Int, val entries: List<ThreadEntry>) : PaginatedWithUrl<ThreadEntry> , BaseForumBoard(source)

A board in the Tibia forums.

Constructors

Link copied to clipboard
constructor(name: String, boardId: Int, sectionId: Int, section: String, threadAge: Int, announcements: List<AnnouncementEntry>, currentPage: Int, totalPages: Int, resultsCount: Int, entries: List<ThreadEntry>)

Properties

Link copied to clipboard

The announcements in the board.

Link copied to clipboard
open override val boardId: Int

The internal ID of the board. Used for linking.

Link copied to clipboard
open override val currentPage: Int

The currently viewed page.

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

The entries in this page.

Link copied to clipboard

The name of the board.

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 name of the section the board is in.

Link copied to clipboard

The internal ID of the section the board is in.

Link copied to clipboard

The age in days of the displayed posts.

Link copied to clipboard
open override val totalPages: Int

The total number of pages.

Link copied to clipboard
open override val url: String

The URL to this board.

Functions

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

Get the URL to a specific page.