Last active
August 14, 2019 17:42
-
-
Save BambangHeriSetiawan/6df9769b46d777c4bd7a2745018ca9aa to your computer and use it in GitHub Desktop.
ApiRequests
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
object ApiRequests { | |
suspend fun discover(page:Int, year:Int) = API.Factory.create(BuildConfig.BASE_URL).discoverAsync(BuildConfig.API_KEY,page,year).await() | |
suspend fun search(page:Int, year:Int,query:String) = API.Factory.create(BuildConfig.BASE_URL).searchAsync(BuildConfig.API_KEY,page,year,query).await() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment