commonMain.app.moviebase.tmdb.api.TmdbCollectionsApi.kt Maven / Gradle / Ivy
package app.moviebase.tmdb.api
import app.moviebase.tmdb.model.TmdbBelongsToCollection
import app.moviebase.tmdb.remote.endPointV3
import app.moviebase.tmdb.remote.parameterLanguage
import io.ktor.client.*
import io.ktor.client.request.*
class TmdbCollectionsApi(private val client: HttpClient) {
suspend fun getDetails(collectionId: Int, language: String? = null): TmdbBelongsToCollection = client.get {
endPointV3("collection", collectionId.toString())
parameterLanguage(language)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy