PageContainer

@Serializable
data class PageContainer<T>(val items: List<T>, var total: Int, var nextOffset: Int? = null)

Base container for paging response

Constructors

Link copied to clipboard
constructor(items: List<T>, total: Int, nextOffset: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "items")
val items: List<T>

Result list of new page

Link copied to clipboard
@SerialName(value = "next_offset")
var nextOffset: Int?

Offset for next page

Link copied to clipboard
@SerialName(value = "total")
var total: Int

Total number of items in list