Cursor Based Paging Object
data class CursorBasedPagingObject<T : Any>(href: String, items: List<T>, limit: Int, next: String?, cursor: Cursor?, total: Int, offset: Int, previous: String?) : PagingObjectBase<T, CursorBasedPagingObject<T>>
Content copied to clipboard
The cursor-based paging object is a container for a set of objects. It contains a key called items (whose value is an array of the requested objects) along with other keys like next and cursors that can be useful in future calls.
Parameters
href
A link to the Web API endpoint returning the full result of the request.
items
The requested data.
limit
The maximum number of items in the response (as set in the query or by default).
next
URL to the next page of items. ( null if none)
total
The maximum number of items available to return.
cursor
The cursors used to find the next set of items. If items is empty, cursor may be null.
Constructors
CursorBasedPagingObject
Link copied to clipboard
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
component5
Link copied to clipboard
component6
Link copied to clipboard
component7
Link copied to clipboard
component8
Link copied to clipboard
containsAll
Link copied to clipboard
flow
Link copied to clipboard
@FlowPreview()
@ExperimentalCoroutinesApi()
Content copied to clipboard
flowBackward
Link copied to clipboard
@ExperimentalCoroutinesApi()
Content copied to clipboard
flowEndOrdered
Link copied to clipboard
@ExperimentalCoroutinesApi()
Content copied to clipboard
flowForward
Link copied to clipboard
@ExperimentalCoroutinesApi()
Content copied to clipboard
flowOrdered
Link copied to clipboard
@FlowPreview()
@ExperimentalCoroutinesApi()
Content copied to clipboard
flowPagingObjects
Link copied to clipboard
@ExperimentalCoroutinesApi()
Content copied to clipboard
flowPagingObjectsOrdered
Link copied to clipboard
@ExperimentalCoroutinesApi()
Content copied to clipboard
flowStartOrdered
Link copied to clipboard
@ExperimentalCoroutinesApi()
Content copied to clipboard
getAllItems
Link copied to clipboard
getAllItemsNotNull
Link copied to clipboard
getAllPagingObjects
Link copied to clipboard
open suspend override fun getAllPagingObjects(): List<CursorBasedPagingObject<T>>
Content copied to clipboard
Retrieve all PagingObjectBase associated with this rest action
getCursorBasedPagingObject
Link copied to clipboard
suspend fun getCursorBasedPagingObject(url: String): CursorBasedPagingObject<T>?
Content copied to clipboard
getNext
Link copied to clipboard
getPrevious
Link copied to clipboard
getWithNext
Link copied to clipboard
Synchronously retrieve the next total paging objects associated with this CursorBasedPagingObject, including this CursorBasedPagingObject.
getWithNextItems
Link copied to clipboard
Retrieve the items associated with the next total paging objects associated with this rest action, including the current one.
getWithNextTotalPagingObjects
Link copied to clipboard
open suspend override fun getWithNextTotalPagingObjects(total: Int): List<CursorBasedPagingObject<T>>
Content copied to clipboard
Synchronously retrieve the next total paging objects associated with this PagingObjectBase, including this PagingObjectBase.
lastIndexOf
Link copied to clipboard
listIterator
Link copied to clipboard
Properties
Sources
(source)
Link copied to clipboard