commonMain.app.moviebase.tmdb.model.TmdbCollectionModel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tmdb-api-jvm Show documentation
Show all versions of tmdb-api-jvm Show documentation
Kotlin Multiplatform library to access the TMDB API.
The newest version!
package app.moviebase.tmdb.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class TmdbCollection(
@SerialName("adult") val adult: Boolean,
@SerialName("id") val id: Int,
@SerialName("name") val name: String,
@SerialName("backdrop_path") val backdropPath: String? = null,
@SerialName("original_language") val originalLanguage: String,
@SerialName("original_name") val originalName: String,
@SerialName("overview") val overview: String,
@SerialName("poster_path") val posterPath: String?
) : TmdbSearchable
@Serializable
data class TmdbCollectionPageResult(
@SerialName("page") override val page: Int,
@SerialName("results") override val results: List = emptyList(),
@SerialName("total_results") override val totalResults: Int,
@SerialName("total_pages") override val totalPages: Int
) : TmdbPageResult