feat(domain): add core use cases
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.radiola.domain.usecase
|
||||
|
||||
import com.radiola.domain.model.Station
|
||||
import com.radiola.domain.repository.StationRepository
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import javax.inject.Inject
|
||||
|
||||
class GetStationsUseCase @Inject constructor(
|
||||
private val stationRepository: StationRepository
|
||||
) {
|
||||
operator fun invoke(): Flow<List<Station>> = stationRepository.getStations()
|
||||
}
|
||||
Reference in New Issue
Block a user