Vm Data

sealed class VmData<T : Any>

Stands for ViewModel Data, used for configuring state of MutableLiveData

Author

Jimly A.

Since

31-May-20.

Parameters

T

any object to be expected from API

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Default<T : Any> : VmData<T>
Link copied to clipboard
class Empty<T : Any> : VmData<T>
Link copied to clipboard
data class Failure<T : Any>(val throwable: Throwable?, val message: String?) : VmData<T>
Link copied to clipboard
class Loading<T : Any> : VmData<T>
Link copied to clipboard
data class Success<T : Any>(val data: T) : VmData<T>

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sources

Link copied to clipboard