CursorPaging

@Serializable
data class CursorPaging<T>(val href: String, val limit: Int, val next: String? = null, val cursors: Cursors? = null, val total: Int? = null, val items: List<T>)

Generic Spotify cursor-based paging object.

Wraps one page of items together with cursor-paging metadata. cursors is null when Spotify omits it (e.g. on the last page); total is null for endpoints that do not report it (e.g. recently played tracks).

Parameters

T

Element type of the page.

Constructors

Link copied to clipboard
constructor(href: String, limit: Int, next: String? = null, cursors: Cursors? = null, total: Int? = null, items: List<T>)

Properties

Link copied to clipboard
val cursors: Cursors? = null
Link copied to clipboard
Link copied to clipboard
val items: List<T>
Link copied to clipboard
val limit: Int
Link copied to clipboard
val next: String? = null
Link copied to clipboard
val total: Int? = null