Resource

data class Resource<out T>(val status: Resource.Status, val data: T? = null, val message: String? = null, val error: Throwable? = null, val requestTime: Long = 0, val responseTime: Long = 0)

Constructors

Link copied to clipboard
constructor(status: Resource.Status, data: T? = null, message: String? = null, error: Throwable? = null, requestTime: Long = 0, responseTime: Long = 0)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
val data: T? = null
Link copied to clipboard
val error: Throwable? = null
Link copied to clipboard
val message: String? = null
Link copied to clipboard
val requestTime: Long = 0

Request time in milliseconds

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard