Skip to content

Instantly share code, notes, and snippets.

@arun-kushwaha04
Created December 22, 2021 02:37
Show Gist options
  • Select an option

  • Save arun-kushwaha04/adee53787abdecf24206f1c36faae12b to your computer and use it in GitHub Desktop.

Select an option

Save arun-kushwaha04/adee53787abdecf24206f1c36faae12b to your computer and use it in GitHub Desktop.
interface Repository{
suspend fun getUsers():Call<List<user>>
}
class RepositoryImpl @Inject constructor(
private val api: Api
): Repository {
override suspend fun getUsers(): Call<List<user>> {
return api.getUsers()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment