Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-26 17:00:41 +04:00
parent 097b9ec463
commit 82e3fc2451
17 changed files with 64 additions and 88 deletions

View file

@ -1,8 +0,0 @@
<?xml version="1.0" ?>
<SmellBaseline>
<ManuallySuppressedIssues/>
<CurrentIssues>
<ID>NamedArguments:TokensDataStateExpress.kt$TokensDataStateExpress.Companion$CurrenciesGroup(emptyList(), emptyList(), emptyList(), false)</ID>
<ID>NullableBooleanCheck:ExchangeStatus.kt$ExchangeStatusModel$createdAt?.isBefore(DateTime.now().minusMinutes(FIFTEEN_MINUTES)) ?: false</ID>
</CurrentIssues>
</SmellBaseline>

View file

@ -32,7 +32,7 @@ data class ExchangeStatusModel(
val averageDuration: Int? = null,
) {
val hasLongTime: Boolean
get() = createdAt?.isBefore(DateTime.now().minusMinutes(FIFTEEN_MINUTES)) ?: false
get() = createdAt?.isBefore(DateTime.now().minusMinutes(FIFTEEN_MINUTES)) == true
private companion object {
const val FIFTEEN_MINUTES = 15

View file

@ -12,8 +12,18 @@ data class TokensDataStateExpress(
) {
companion object {
val EMPTY = TokensDataStateExpress(
fromGroup = CurrenciesGroup(emptyList(), emptyList(), emptyList(), false),
toGroup = CurrenciesGroup(emptyList(), emptyList(), emptyList(), false),
fromGroup = CurrenciesGroup(
available = emptyList(),
unavailable = emptyList(),
accountCurrencyList = emptyList(),
isAfterSearch = false,
),
toGroup = CurrenciesGroup(
available = emptyList(),
unavailable = emptyList(),
accountCurrencyList = emptyList(),
isAfterSearch = false,
),
allProviders = emptyList(),
)
}