PaginatedList

@Serializable
data class PaginatedList<T>(val data: List<T>, val hasMore: Boolean? = null, val firstId: String? = null, val lastId: String? = null) : List<T>

Constructors

Link copied to clipboard
constructor(data: List<T>, hasMore: Boolean? = null, firstId: String? = null, lastId: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "data")
val data: List<T>
Link copied to clipboard
@SerialName(value = "first_id")
val firstId: String? = null
Link copied to clipboard
@SerialName(value = "has_more")
val hasMore: Boolean? = null
Link copied to clipboard
@SerialName(value = "last_id")
val lastId: String? = null
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open operator override fun contains(element: T): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
open operator override fun get(index: Int): T
Link copied to clipboard
open override fun indexOf(element: T): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<T>
Link copied to clipboard
open override fun lastIndexOf(element: T): Int
Link copied to clipboard
open override fun listIterator(): ListIterator<T>
open override fun listIterator(index: Int): ListIterator<T>
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<T>