ForumThread

@Serializable
data class ForumThread(val title: String, val threadId: Int, val board: String, val boardId: Int, val section: String, val sectionId: Int, val previousTopicNumber: Int?, val nextTopicNumber: Int?, val goldenFrame: Boolean, val anchoredPost: ForumPost? = null, val currentPage: Int, val totalPages: Int, val resultsCount: Int, val entries: List<ForumPost>) : BaseForumThread, PaginatedWithUrl<ForumPost> (source)

A thread in the Tibia forums.

Constructors

Link copied to clipboard
constructor(title: String, threadId: Int, board: String, boardId: Int, section: String, sectionId: Int, previousTopicNumber: Int?, nextTopicNumber: Int?, goldenFrame: Boolean, anchoredPost: ForumPost? = null, currentPage: Int, totalPages: Int, resultsCount: Int, entries: List<ForumPost>)

Properties

Link copied to clipboard
val anchoredPost: ForumPost? = null

The post that corresponds to the anchor in the URL if any.

Link copied to clipboard

The name of the board the thread is in.

Link copied to clipboard

The internal ID of the board the thread is in.

Link copied to clipboard
open override val currentPage: Int

The currently viewed page.

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

The entries in this page.

Link copied to clipboard

Whether the post has a golden frame or not.

Link copied to clipboard
open val nextPageUrl: String?

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

Link copied to clipboard

The ID of the thread after this one.

Link copied to clipboard

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

Link copied to clipboard

The ID of the thread before this one.

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
open override val threadId: Int

The internal ID of the thread.

Link copied to clipboard
open override val title: String

The title of the thread.

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 the forum thread.

Functions

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

Get the URL to a specific page in the thread.