Updated on 2026-08-14

This commit is contained in:
Tangem 2025-02-19 12:03:10 +04:00
parent 0bf2decb83
commit 36e7f2d07f
23 changed files with 212 additions and 70 deletions

View file

@ -0,0 +1,24 @@
package com.tangem.domain.models
/**
* Source of the status of any loaded data
*
[REDACTED_AUTHOR]
*/
enum class StatusSource {
/**
* Status is loaded from the cache.
* In most cases, it's a temporary value, then the source should become either [ACTUAL] or [ONLY_CACHE]
*/
CACHE,
/**
* Status is updated by a data source that is of actual value.
* In most cases, this is a remote data source. But it can also be a value that we have updated programmatically.
*/
ACTUAL,
/** Status is loaded from the cache and can't be updated with actual value */
ONLY_CACHE,
}