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_id | since_id | max_id | limit | result |
---|---|---|---|---|
1 | 5 | 2, 3, 4, 5, 6 | ||
1 | 5 | 96, 97, 98, 99, 100 | ||
97 | 98, 99, 100 | |||
50 | 54 | 51, 52, 53 |