teller-android
Module Contents
alltypes
Module Contents
data class Age
typealias GetCacheRequirementsTag = String
data class LocalCacheState<CACHE : Any>
interface LocalCacheStateListener<in DATA>
class LocalCacheStateTesting
abstract class LocalRepository<CACHE : Any, GET_CACHE_REQUIREMENTS : GetCacheRequirements>
open class OnlineCacheState<CACHE>
interface OnlineCacheStateCacheListener<in CACHE>
interface OnlineCacheStateFetchingListener
interface OnlineCacheStateListener<in CACHE> : OnlineCacheStateFetchingListener, OnlineCacheStateNoCacheStateListener, OnlineCacheStateCacheListener<CACHE>
interface OnlineCacheStateNoCacheStateListener
class OnlineCacheStateTesting
@DslMarker annotation class OnlineCacheStateTestingDsl
abstract class OnlineRepository<CACHE, GET_CACHE_REQUIREMENTS : GetCacheRequirements, FETCH_RESPONSE>
typealias OnlineRepositoryCache = Any
typealias OnlineRepositoryFetchResponse = Any
class OnlineRepositoryRefreshResultTesting
class OnlineRepositoryTesting
Module Contents
class CacheExistsDsl
data class SetValues
class StateOfOnlineRepositoryDsl<CACHE>
fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> initState(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null): SetValues
fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> initState(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null): SetValues
fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> initStateAsync(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null, complete: (SetValues) -> Unit): Unit
fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> initStateAsync(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null, complete: (SetValues) -> Unit): Unit
@DslMarker annotation class OnlineRepositoryTestingDsl
class ServerNotAvailableException : Throwable
class Teller
class UnknownHttpResponseError : Throwable
class UserNotFoundException : Throwable
package com.levibostian.teller
package com.levibostian.teller.cachestate
package com.levibostian.teller.cachestate.listener
package com.levibostian.teller.error
package com.levibostian.teller.repository
package com.levibostian.teller.testing.cachestate
package com.levibostian.teller.testing.extensions
Module Contents
fun <CACHE : Any> Testing.cache(requirements: GetCacheRequirements, cache: CACHE): LocalCacheState<CACHE>
fun <CACHE> Testing.cache(requirements: GetCacheRequirements, lastTimeFetched: Date, more: CacheExistsDsl<CACHE>.() -> Unit = null): OnlineCacheState<CACHE>
fun Testing.failure(error: Throwable): RefreshResult
fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> Testing.initState(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null): SetValues
fun <FETCH_RESPONSE, REPO : OnlineRepository<*, GetCacheRequirements, FETCH_RESPONSE>> Testing.initStateAsync(repository: REPO, requirements: GetCacheRequirements, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null, complete: (SetValues) -> Unit): Unit
fun <CACHE : Any> Testing.isEmpty(requirements: GetCacheRequirements): LocalCacheState<CACHE>
fun <CACHE> Testing.noCache(requirements: GetCacheRequirements, more: NoCacheExistsDsl.() -> Unit = null): OnlineCacheState<CACHE>
fun <CACHE : Any> Testing.none(): LocalCacheState<CACHE>
fun <CACHE> Testing.none(): OnlineCacheState<CACHE>
fun Testing.skipped(reason: SkippedReason): RefreshResult
fun Testing.success(): RefreshResult
package com.levibostian.teller.testing.repository
Module Contents
class OnlineRepositoryRefreshResultTesting
class OnlineRepositoryTesting
Module Contents
class CacheExistsDsl
data class SetValues
class StateOfOnlineRepositoryDsl<CACHE>
fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> initState(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null): SetValues
fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> initState(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null): SetValues
fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> initStateAsync(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null, complete: (SetValues) -> Unit): Unit
fun <CACHE, REQ : GetCacheRequirements, FETCH_RESPONSE> initStateAsync(repository: OnlineRepository<CACHE, REQ, FETCH_RESPONSE>, requirements: REQ, more: StateOfOnlineRepositoryDsl<FETCH_RESPONSE>.() -> Unit = null, complete: (SetValues) -> Unit): Unit
@DslMarker annotation class OnlineRepositoryTestingDsl
package com.levibostian.teller.type