Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-04 12:50:27 +04:00
parent 324f207300
commit 0802dfb9fc
5 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,10 @@
package com.tangem.domain.settings
import com.tangem.domain.settings.repositories.SettingsRepository
class ShouldShowMarketsTooltipUseCase(private val settingsRepository: SettingsRepository) {
suspend operator fun invoke(): Boolean = settingsRepository.shouldShowMarketsTooltip()
suspend operator fun invoke(isShown: Boolean) = settingsRepository.setMarketsTooltipShown(isShown)
}

View file

@ -29,4 +29,8 @@ interface SettingsRepository {
suspend fun setShouldSaveAccessCodes(value: Boolean)
suspend fun incrementAppLaunchCounter()
suspend fun shouldShowMarketsTooltip(): Boolean
suspend fun setMarketsTooltipShown(value: Boolean)
}