interface OnlineCacheStateFetchingListener
abstract fun fetching(): Unit
OnlineRepository currently fetching fresh response to update the cache. Network call is in process. |
|
abstract fun finishedFetching(errorDuringFetch: Throwable?): Unit
Fetching of fresh response to put into the cache has been completed successfully or not. If errorDuringFetch is not null, then it was a fail if it is null it was successful. |
interface OnlineCacheStateListener<in CACHE> : OnlineCacheStateFetchingListener, OnlineCacheStateNoCacheStateListener, OnlineCacheStateCacheListener<CACHE> |