Pagination

class Pagination @InternalWowApi constructor(val index: Int = 1, val size: Int = 10)

Data class representing pagination settings for queries.

This class defines which page of results to retrieve and how many items per page. Page indexing starts from 1, and the offset is calculated automatically.

Constructors

Link copied to clipboard
constructor(index: Int = 1, size: Int = 10)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val index: Int

The page number to retrieve, at least 1.

Link copied to clipboard
val size: Int

The number of items per page, at least 1.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun offset(): Long

Calculates the zero-based offset for this pagination settings.

Link copied to clipboard
open override fun toString(): String