Resource

sealed class Resource<T : Any>

Inheritors

Types

Link copied to clipboard
data class Error<T : Any>(val code: Int, val message: String, val trace: String? = null, val alert: AlertBean? = null) : Resource<T>
Link copied to clipboard
data class Exception<T : Any>(val e: Throwable) : Resource<T>
Link copied to clipboard
data class Success<T : Any>(val data: T) : Resource<T>