commonMain.app.moviebase.tmdb.api.TmdbNetworksApi.kt Maven / Gradle / Ivy
package app.moviebase.tmdb.api
import app.moviebase.tmdb.model.AppendResponse
import app.moviebase.tmdb.model.TmdbNetwork
import app.moviebase.tmdb.core.endPointV3
import app.moviebase.tmdb.core.parameterAppendResponses
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.request.*
class TmdbNetworksApi internal constructor(private val client: HttpClient) {
suspend fun getDetails(networkId: Int, appendResponses: Iterable? = null): TmdbNetwork = client.get {
endPointV3("network", networkId.toString())
parameterAppendResponses(appendResponses)
}.body()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy