Response

@Serializable
data class Response(val data: List<Website>, val count: Long, val page: Int, val pageSize: Int, val orderBy: String)

Represents the response from a successful getWebsites API call.

Constructors

Link copied to clipboard
constructor(data: List<Website>, count: Long, page: Int, pageSize: Int, orderBy: String)

Properties

Link copied to clipboard
@SerialName(value = "count")
val count: Long

The total count of websites.

Link copied to clipboard
@SerialName(value = "data")
val data: List<Website>

The list of websites.

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

The field by which the results are ordered.

Link copied to clipboard
@SerialName(value = "page")
val page: Int

The current page number.

Link copied to clipboard
@SerialName(value = "pageSize")
val pageSize: Int

The number of websites per page.