teller-android / com.levibostian.teller.cachestate

Package com.levibostian.teller.cachestate

Types

LocalCacheState

data class LocalCacheState<CACHE : Any>

Local response (response obtained from the user or device, no network fetch call) in apps are in 1 of 2 different types of state:

OnlineCacheState

open class OnlineCacheState<CACHE>

Holds the current state of response that is obtained via a network call. This response structure is meant to be passed out of Teller and to the application using Teller so it can parse it and display the response representation in the app. The online response state is not manipulated here. It is only stored. Data in apps are in 1 of 3 different types of state: