commonMain.app.moviebase.tmdb.model.TmdbAccountModel.kt Maven / Gradle / Ivy
package app.moviebase.tmdb.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class TmdbAccountDetails(
val id: String,
@SerialName("username") val userName: String,
val name: String,
val avatar: TmdbAvatar
)
@Serializable
data class TmdbAvatar(
val gravatar: TmdbGravatar
)
@Serializable
data class TmdbGravatar(
val hash: String?
)
@Serializable
data class TmdbFavoriteRequestBody(
@SerialName("media_type") val mediaType: String,
@SerialName("media_id") val mediaId: Int,
@SerialName("favorite") val favorite: Boolean
)
@Serializable
data class TmdbWatchlistRequestBody(
@SerialName("media_type") val mediaType: String,
@SerialName("media_id") val mediaId: Int,
@SerialName("watchlist") val watchlist: Boolean
)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy