55 lines
1.9 KiB
Go
55 lines
1.9 KiB
Go
package tmdb
|
|
|
|
import (
|
|
// "encoding/json"
|
|
)
|
|
|
|
type Movie struct {
|
|
Adult bool `json:"adult"`
|
|
Backdrop string `json:"backdrop_path"`
|
|
Collection string `json:"belongs_to_collection"`
|
|
Budget int `json:"budget"`
|
|
Genres []Genre `json:"genres"`
|
|
Homepage string `json:"homepage"`
|
|
ID int32 `json:"id"`
|
|
IMDbID string `json:"imdb_id"`
|
|
OriginalLanguage string `json:"original_language"`
|
|
OriginalTitle string `json:"original_title"`
|
|
Overview string `json:"overview"`
|
|
Popularity float32 `json:"popularity"`
|
|
Poster string `json:"poster_path"`
|
|
ProductionCompanies []ProductionCompany `json:"production_companies"`
|
|
ProductionCountries []ProductionCountry `json:"production_countries"`
|
|
ReleaseDate string `json:"release_date"`
|
|
Revenue int `json:"revenue"`
|
|
Runtime int `json:"runtime"`
|
|
SpokenLanguages []SpokenLanguage `json:"spoken_languages"`
|
|
Status string `json:"status"`
|
|
Tagline string `json:"tagline"`
|
|
Title string `json:"title"`
|
|
Video bool `json:"video"`
|
|
}
|
|
|
|
type Genre struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type ProductionCompany struct {
|
|
ID int `json:"id"`
|
|
Logo string `json:"logo_path"`
|
|
Name string `json:"name"`
|
|
OriginCountry string `json:"origin_country"`
|
|
}
|
|
|
|
type ProductionCountry struct {
|
|
ISO_3166_1 string `json:"iso_3166_1"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type SpokenLanguage struct {
|
|
EnglishName string `json:"english_name"`
|
|
ISO_639_1 string `json:"iso_639_1"`
|
|
Name string `json:"name"`
|
|
}
|