Package-level declarations

Classes related to API paging.

Types

Link copied to clipboard
data class OffsetPageInfo(val offset: Int? = null)

Represents a pagination state, to get a specific page of results from an API.

Link copied to clipboard
data class Page<T>(val contents: T, val nextPage: PageInfo?, val previousPage: PageInfo?)

A page of results from the API.

Link copied to clipboard
interface Pageable

An item that can be paginated using its id.

Link copied to clipboard
data class PageInfo(val sinceId: String? = null, val minId: String? = null, val maxId: String? = null)

Represents a pagination state, to get a specific page of results from an API.