PaginatedWithUrl

An object made of multiple pages with URLs.

Inheritors

Properties

Link copied to clipboard
abstract val currentPage: Int

The currently viewed page.

Link copied to clipboard
abstract val entries: List<T>

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
abstract val resultsCount: Int

The total number of entries across all pages.

Link copied to clipboard
abstract val totalPages: Int

The total number of pages.

Functions

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

Get the URL to a specific page.