ResponseData

@Serializable
data class ResponseData<T>(val status: Int, val quota: ResponseData.Quota?, val error: CodableException?, val main: T?)(source)

Constructors

Link copied to clipboard
constructor(status: Int, quota: ResponseData.Quota?, error: CodableException?, main: T?)

Types

Link copied to clipboard
@Serializable
data class Quota(val limited: Int)

Represents request quota/limit information.

Link copied to clipboard
class ResponseBuilder<T>(var status: HttpStatusCode = HttpStatusCode.OK, var quota: ResponseData.Quota? = null, var error: CodableException? = null, var main: T? = null)

Properties

Link copied to clipboard
@SerialName(value = "error")
val error: CodableException?
Link copied to clipboard
@SerialName(value = "main")
@Serializable
val main: T?
Link copied to clipboard
@SerialName(value = "quota")
val quota: ResponseData.Quota?
Link copied to clipboard
@SerialName(value = "status")
val status: Int