Skip to content

Instantly share code, notes, and snippets.

@abos3d
Last active June 22, 2021 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abos3d/b718d87b589b4dcc5102c327ee89c790 to your computer and use it in GitHub Desktop.
Save abos3d/b718d87b589b4dcc5102c327ee89c790 to your computer and use it in GitHub Desktop.
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