parent
724e6cb75c
commit
76130b9358
@ -0,0 +1,8 @@
|
|||||||
|
package fr.iut.pm.movieapplication.api.dtos
|
||||||
|
|
||||||
|
data class GenreDTO(
|
||||||
|
val id : Int,
|
||||||
|
val name : String
|
||||||
|
) {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
package fr.iut.pm.movieapplication.api.dtos
|
||||||
|
|
||||||
|
import fr.iut.pm.movieapplication.model.Genre
|
||||||
|
|
||||||
|
class MovieDetailsDTO(
|
||||||
|
|
||||||
|
adult : Boolean?,
|
||||||
|
backdropPath : String?,
|
||||||
|
val budget : Int,
|
||||||
|
val genres : List<GenreDTO>,
|
||||||
|
val homepage : String?,
|
||||||
|
id : Int,
|
||||||
|
originalLanguage : String,
|
||||||
|
originalTitle : String,
|
||||||
|
overview : String?,
|
||||||
|
popularity : Double,
|
||||||
|
posterPath : String?,
|
||||||
|
//prod companies
|
||||||
|
//prod countries
|
||||||
|
releaseDate : String?,
|
||||||
|
val revenue : Int,
|
||||||
|
//spoken language
|
||||||
|
val status : String,
|
||||||
|
title : String,
|
||||||
|
voteAverage : Double,
|
||||||
|
voteCount : Int
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
) : MediaResultDTO(
|
||||||
|
adult = adult,
|
||||||
|
backdropPath = backdropPath,
|
||||||
|
id = id,
|
||||||
|
originalLanguage = originalLanguage,
|
||||||
|
originalTitle = originalTitle,
|
||||||
|
overview = overview,
|
||||||
|
popularity = popularity,
|
||||||
|
posterPath = posterPath,
|
||||||
|
releaseDate = releaseDate,
|
||||||
|
title = title,
|
||||||
|
voteAverage = voteAverage,
|
||||||
|
voteCount = voteCount,
|
||||||
|
) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources></resources>
|
Loading…
Reference in new issue