Closed arifaizin closed 2 years ago
class SetFavoriteTourismUseCase(private val tourismRepository: ITourismRepository) {
suspend fun setFavoriteTourism(val tourism: Tourism, val state: Boolean) {
tourismRepository.setFavoriteTourism(tourism, state) //This function is void
}
}
suddenly all your problems are solved
p.s. why have a repository if you have usecases tho :thinking:
Unit
Hai.. i want to know how to make usecase without return value,
My code is like this:
So, what should i feel in HOWTOFILLTHIS ?