Updated on 2026-08-14
This commit is contained in:
parent
324f207300
commit
0802dfb9fc
5 changed files with 35 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
@ -29,4 +29,8 @@ interface SettingsRepository {
|
|||
suspend fun setShouldSaveAccessCodes(value: Boolean)
|
||||
|
||||
suspend fun incrementAppLaunchCounter()
|
||||
|
||||
suspend fun shouldShowMarketsTooltip(): Boolean
|
||||
|
||||
suspend fun setMarketsTooltipShown(value: Boolean)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue