PageInfo

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.

Considering the latest status ids:

1, 2, 3 … 98, 99, 100

Then these queries will result in:

min_idsince_idmax_idlimitresult
152, 3, 4, 5, 6
1596, 97, 98, 99, 100
9798, 99, 100
505451, 52, 53

Constructors

Link copied to clipboard
constructor(sinceId: String? = null, minId: String? = null, maxId: String? = null)

Properties

Link copied to clipboard
val maxId: String? = null

If set, the API will not return items after this ID (not inclusive). The page will therefore end just before the item with this ID.

Link copied to clipboard
val minId: String? = null

If set, the API will not return items before this ID (not inclusive). The page will therefore start just after the item with this ID.

Link copied to clipboard
val sinceId: String? = null

If set, the API will only include items after this ID, but not necessarily starting at this ID.