Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-05 13:58:53 +02:00
parent 8a3d05eac7
commit b9ce4eeefc
14 changed files with 184 additions and 10 deletions

View file

@ -44,6 +44,23 @@ internal class DefaultNotificationsRepository @Inject constructor(
return appPreferencesStore.getSyncOrNull(PreferencesKeys.NOTIFICATIONS_APPLICATION_ID_KEY)
}
override suspend fun incrementTronTokenFeeNotificationShowCounter() {
appPreferencesStore.editData { preferences ->
val count = preferences.getOrDefault(
key = PreferencesKeys.TRON_NETWORK_FEE_NOTIFICATION_SHOW_COUNT_KEY,
default = 0,
)
preferences[PreferencesKeys.TRON_NETWORK_FEE_NOTIFICATION_SHOW_COUNT_KEY] = count + 1
}
}
override suspend fun getTronTokenFeeNotificationShowCounter(): Int {
return appPreferencesStore.getSyncOrDefault(
key = PreferencesKeys.TRON_NETWORK_FEE_NOTIFICATION_SHOW_COUNT_KEY,
default = 0,
)
}
override suspend fun associateApplicationIdWithWallets(appId: String, wallets: List<String>) =
withContext(dispatchers.io) {
tangemTechApi.associateApplicationIdWithWallets(