FetchState

data class FetchState<TData>(var loading: Boolean? = null, var params: TParams? = null, var data: TData? = null, var error: Throwable? = null) : IFetchStata<TData> , Copyable<FetchState<TData>>

Constructors

Link copied to clipboard
constructor(loading: Boolean? = null, params: TParams? = null, data: TData? = null, error: Throwable? = null)

Properties

Link copied to clipboard
open override var data: TData?
Link copied to clipboard
open override var error: Throwable?
Link copied to clipboard
open override var loading: Boolean?
Link copied to clipboard
open override var params: TParams?

Functions

Link copied to clipboard
fun asMap(): Map<String, Any?>
Link copied to clipboard
open override fun asNotNullMap(): Map<String, Any?>
Link copied to clipboard
open override fun copy(needCopyMap: Map<String, Any?>?): FetchState<TData>
open override fun copy(that: FetchState<TData>?): FetchState<TData>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int