Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-30 18:22:42 +05:00
parent c55274f40f
commit efcb0dea79
20 changed files with 477 additions and 17 deletions

View file

@ -2,6 +2,7 @@ package com.tangem.domain.notifications.models
data class NotificationsEligibleNetwork(
val id: String,
val networkId: String,
val name: String,
val symbol: String,
val icon: Int,
)

View file

@ -0,0 +1,14 @@
package com.tangem.domain.notifications
import arrow.core.Either
import com.tangem.domain.notifications.models.NotificationsEligibleNetwork
import com.tangem.domain.notifications.repository.NotificationsRepository
class GetNetworksAvailableForNotificationsUseCase(
private val notificationsRepository: NotificationsRepository,
) {
suspend operator fun invoke(): Either<Throwable, List<NotificationsEligibleNetwork>> = Either.catch {
notificationsRepository.getEligibleNetworks()
}
}