SearchResponseData

@Serializable
data class SearchResponseData<T>(val page: Int = 1, val results: List<T> = emptyList(), val hasNextPage: Boolean = false, val totalPages: Int = 0)(source)

Represents the data returned from a search request.

See also

Constructors

Link copied to clipboard
constructor(page: Int = 1, results: List<T> = emptyList(), hasNextPage: Boolean = false, totalPages: Int = 0)

Properties

Link copied to clipboard
val hasNextPage: Boolean = false

Indicates whether there are more pages of search results available.

Link copied to clipboard
val page: Int = 1

The current page number of the search results.

Link copied to clipboard
val results: List<T>

The list of search results for the current page.

Link copied to clipboard
@SerializedName(value = "total_pages")
val totalPages: Int = 0

The total number of pages of search results.