CMPostArchive

@Serializable
data class CMPostArchive(val startDate: LocalDate, val endDate: LocalDate, val currentPage: Int, val totalPages: Int, val resultsCount: Int, val entries: List<CMPost>) : PaginatedWithUrl<CMPost> (source)

The CM Post Archive, displaying recent posts by Community Managers.

Constructors

Link copied to clipboard
constructor(startDate: LocalDate, endDate: LocalDate, currentPage: Int, totalPages: Int, resultsCount: Int, entries: List<CMPost>)

Properties

Link copied to clipboard
open override val currentPage: Int

The currently viewed page.

Link copied to clipboard

The end date for the results.

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

The entries in this page.

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 start date for the results.

Link copied to clipboard
open override val totalPages: Int

The total number of pages.

Link copied to clipboard
val url: String

The URL to the CM Post archive with the current filters.

Functions

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

Get the URL to a specific page.