Created
October 5, 2022 08:00
-
-
Save danailalexiev/e7167a0985948828110127db3c40e72d to your computer and use it in GitHub Desktop.
Kotlin Multiplatform Common API Client
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
internal interface ApiClient { | |
suspend fun getRandomJoke(category: JokeCategory? = null): Result<Joke> | |
suspend fun getJokeCategories(): Result<List<JokeCategory>> | |
suspend fun findJoke(query: String): Result<JokeSearchResult> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment