Paging

@Serializable
data class Paging<T>(val href: String, val limit: Int, val next: String? = null, val offset: Int, val previous: String? = null, val total: Int, val items: List<T>)

Generic Spotify offset-based paging object.

Wraps one page of items together with offset-paging metadata (href, limit, offset, total, and the next/previous page URLs).

Parameters

T

Element type of the page.

Constructors

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

Properties

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 offset: Int
Link copied to clipboard
val previous: String? = null
Link copied to clipboard
val total: Int