Last active
March 31, 2019 13:49
-
-
Save CostaFot/dbe125d6ad489e1b867b9f9ab65beeb1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class MovieApi(retrofit: Retrofit) { | |
private val api: Api = retrofit.create(Api::class.java) | |
fun getNowPlayingMovies(apiKey: String) = api.getNowPlayingMovies(apiKey) | |
interface Api { | |
@GET("movie/now_playing") | |
fun getNowPlayingMovies(@Query("api_key") apiKey: String): Single<Movies> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment