teller-android / com.levibostian.teller.repository / OnlineRepository / RefreshResult

RefreshResult

class RefreshResult

Result object of a call to OnlineRepository.refresh. Understand if a refresh call was successful, not successful, or skipped for some reason.

Types

SkippedReason

enum class SkippedReason

If a OnlineRepository.refresh task was skipped, compare the skipped property with the enum cases below to determine why the refresh task was skipped.

Testing

object Testing

Used for testing purposes to create instances of OnlineCacheState.

Properties

failedError

val failedError: Throwable?

skipped

val skipped: SkippedReason?

successful

val successful: Boolean

Functions

didFail

fun didFail(): Boolean

didSkip

fun didSkip(): Boolean

didSucceed

fun didSucceed(): Boolean

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int