Skip to content

Instantly share code, notes, and snippets.

@danailalexiev
Created October 5, 2022 08:00
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 danailalexiev/e7167a0985948828110127db3c40e72d to your computer and use it in GitHub Desktop.
Save danailalexiev/e7167a0985948828110127db3c40e72d to your computer and use it in GitHub Desktop.
Kotlin Multiplatform Common API Client
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