add collection information to movie details

This commit is contained in:
Owen LeJeune
2022-03-02 21:58:41 -05:00
parent 70d2afa9c3
commit 70370c0600
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package com.owenlejeune.tvtime.api.tmdb.model
import com.google.gson.annotations.SerializedName
class Collection(
@SerializedName("id") val id: Int,
@SerializedName("name") val name: String,
@SerializedName("poster_path") val posterPath: String?,
@SerializedName("backdrop_path") val backdropPath: String?
)

View File

@@ -25,6 +25,7 @@ class DetailedMovie(
@SerializedName("revenue") val revenue: Int,
@SerializedName("runtime") val runtime: Int?,
@SerializedName("imdb_id") val imdbId: String?,
@SerializedName("belongs_to_collection") val collection: Collection?
): DetailedItem(
id, title, posterPath, backdropPath, genres, overview,
productionCompanies, productionCountries, status, tagline, voteAverage,