NewsEntry

@Serializable
data class NewsEntry(val id: Int, val title: String, val category: NewsCategory, val date: LocalDate, val type: NewsType) : BaseNews(source)

A news entry listed in the NewsArchive.

Constructors

Link copied to clipboard
constructor(id: Int, title: String, category: NewsCategory, date: LocalDate, type: NewsType)

Properties

Link copied to clipboard
open override val category: NewsCategory

The category of the entry.

Link copied to clipboard

The date when the entry was published.

Link copied to clipboard
open override val id: Int

The internal ID of the news entry.

Link copied to clipboard

The title of the entry

Link copied to clipboard

The type of the entry.

Link copied to clipboard
open val url: String

The URL to this article.