PaginatedList

sealed class PaginatedList<out T : Model>(source)

Represents a paginated list of Handle, similar to the paginated resource list objects in the PokeAPI. See: https://pokeapi.co/docs/v2#resource-listspagination-section

Inheritors

Types

Link copied to clipboard
@Serializable
data class Named<out T : NamedModel> : PaginatedList<T>
Link copied to clipboard
@Serializable
data class Unnamed<out T : Model> : PaginatedList<T>

Properties

Link copied to clipboard
abstract val count: Int

The total number of resources available from this API.

Link copied to clipboard
abstract val next: String?

The URL for the next page in the list.

Link copied to clipboard
abstract val previous: String?

The URL for the previous page in the list.

Link copied to clipboard
abstract val results: List<Handle<T>>

The list of returned resources in this page.