-
public class FiatCurrencyConversionRateState.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final DurationFUTURE_CUTOFF_AGE_INCLUSIVEprivate final DurationCURRENT_CUTOFF_AGE_INCLUSIVEprivate final DurationSTALE_CUTOFF_AGE_INCLUSIVEpublic final static FiatCurrencyConversionRateState.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final DurationgetFUTURE_CUTOFF_AGE_INCLUSIVE()Cutoff negative age. final DurationgetCURRENT_CUTOFF_AGE_INCLUSIVE()Cutoff age for next attempt to refresh the conversion rate from the API. final DurationgetSTALE_CUTOFF_AGE_INCLUSIVE()Cutoff age for displaying conversion rate from prior app launches or background refresh. -
-
Method Detail
-
getFUTURE_CUTOFF_AGE_INCLUSIVE
final Duration getFUTURE_CUTOFF_AGE_INCLUSIVE()
Cutoff negative age. Some users may intentionally set their clock forward 10 minutes because they're always late to things. This allows the app to mostly work for those users, while still failing if the clock is way off.
-
getCURRENT_CUTOFF_AGE_INCLUSIVE
final Duration getCURRENT_CUTOFF_AGE_INCLUSIVE()
Cutoff age for next attempt to refresh the conversion rate from the API.
-
getSTALE_CUTOFF_AGE_INCLUSIVE
final Duration getSTALE_CUTOFF_AGE_INCLUSIVE()
Cutoff age for displaying conversion rate from prior app launches or background refresh.
-
-
-
-