FineTuningPage

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

A fine-tuning resource page with its full cursor envelope.

Constructors

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

Properties

Link copied to clipboard
val data: List<T>

Resources in the current page.

Link copied to clipboard
@SerialName(value = "first_id")
val firstId: String? = null

First resource identifier, when supplied.

Link copied to clipboard
@SerialName(value = "has_more")
val hasMore: Boolean

Whether another page exists.

Link copied to clipboard
@SerialName(value = "last_id")
val lastId: String? = null

Cursor for the next page, when supplied.

Link copied to clipboard
@SerialName(value = "object")
val objectType: String

Resource object type.

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>