Updated on 2026-08-14
This commit is contained in:
parent
8a3d05eac7
commit
b9ce4eeefc
14 changed files with 184 additions and 10 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue