Last active
June 22, 2021 09:04
-
-
Save abos3d/b718d87b589b4dcc5102c327ee89c790 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cleanarchitectkotlinflowhiltsimplestway.domain | |
import com.google.gson.JsonObject | |
import com.cleanarchitectkotlinflowhiltsimplestway.data.APIs | |
import javax.inject.Inject | |
class SampleUseCase @Inject constructor( | |
private val apIs: APIs | |
) { | |
suspend operator fun invoke(): JsonObject { | |
val response = apIs.sampleGet() | |
//here you can add some domain logic or call another UseCase | |
return response | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment