PageV2

API: Stable

Represents a single ‘page’ of results

data class PageV2<T>(
    val itemsPerPage: Int,
    val items: List<T>,
    val next: String?,
)

Every page contains the items from the current result set, along with information which allows the client to fetch additional information.

Properties
itemsPerPage: Int The expected items per page, this is extracted directly from the request
items: List<T> The items returned in this page

NOTE: The amount of items might differ from itemsPerPage, even if there are more results. The only reliable way to check if the end of results has been reached is by checking i next == null.

next: String? The token used to fetch additional items from this result set