News

@Serializable
data class News(val id: Int, val title: String, val category: NewsCategory, val date: LocalDate, val content: String, val threadId: Int?) : BaseNews(source)

A news article, featured article or news ticker.

Constructors

Link copied to clipboard
constructor(id: Int, title: String, category: NewsCategory, date: LocalDate, content: String, threadId: Int?)

Properties

Link copied to clipboard
open override val category: NewsCategory

The category of the entry.

Link copied to clipboard

The HTML content of the article.

Link copied to clipboard

The date when this entry was published.

Link copied to clipboard
open override val id: Int

The internal ID of the entry.

Link copied to clipboard

The discussion thread specific for this entry, if any.

Link copied to clipboard

The URL to the discussion thread of this article, if any.

Link copied to clipboard

The title of the news.

Link copied to clipboard
open val url: String

The URL to this article.