Updated on 2026-08-14
This commit is contained in:
parent
c55274f40f
commit
efcb0dea79
20 changed files with 477 additions and 17 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue