@@ -4,83 +4,11 @@ import "fmt"
4
4
5
5
// FindByID type is a struct for find JSON response.
6
6
type FindByID struct {
7
- MovieResults []struct {
8
- Adult bool `json:"adult"`
9
- BackdropPath string `json:"backdrop_path"`
10
- GenreIDs []int64 `json:"genre_ids"`
11
- ID int64 `json:"id"`
12
- OriginalLanguage string `json:"original_language"`
13
- OriginalTitle string `json:"original_title"`
14
- Overview string `json:"overview"`
15
- PosterPath string `json:"poster_path"`
16
- ReleaseDate string `json:"release_date"`
17
- Title string `json:"title"`
18
- Video bool `json:"video"`
19
- Popularity float32 `json:"popularity"`
20
- VoteMetrics
21
- } `json:"movie_results,omitempty"`
22
- PersonResults []struct {
23
- Adult bool `json:"adult"`
24
- Gender int `json:"gender"`
25
- Name string `json:"name"`
26
- ID int64 `json:"id"`
27
- KnownFor []struct {
28
- Adult bool `json:"adult,omitempty"` // Movie
29
- BackdropPath string `json:"backdrop_path"`
30
- FirstAirDate string `json:"first_air_date,omitempty"` // TV
31
- // GenreIDs []int64 `json:"genre_ids"` // FIXME: -> []float32
32
- // ID int64 `json:"id"` // FIXME: -> float32
33
- MediaType string `json:"media_type"`
34
- Name string `json:"name,omitempty"` // TV
35
- OriginalLanguage string `json:"original_language"`
36
- OriginalName string `json:"original_name,omitempty"` // TV
37
- OriginalTitle string `json:"original_title,omitempty"` // Movie
38
- OriginCountry []string `json:"origin_country,omitempty"` // TV
39
- Overview string `json:"overview"`
40
- Popularity float32 `json:"popularity"`
41
- PosterPath string `json:"poster_path"`
42
- ReleaseDate string `json:"release_date,omitempty"` // Movie
43
- Title string `json:"title,omitempty"` // Movie
44
- Video bool `json:"video,omitempty"` // Movie
45
- VoteMetrics
46
- } `json:"known_for"`
47
- KnownForDepartment string `json:"known_for_department"`
48
- ProfilePath string `json:"profile_path"`
49
- Popularity float32 `json:"popularity"`
50
- } `json:"person_results,omitempty"`
51
- TvResults []struct {
52
- OriginalName string `json:"original_name"`
53
- ID int64 `json:"id"`
54
- Name string `json:"name"`
55
- FirstAirDate string `json:"first_air_date"`
56
- PosterPath string `json:"poster_path"`
57
- GenreIDs []int64 `json:"genre_ids"`
58
- OriginalLanguage string `json:"original_language"`
59
- BackdropPath string `json:"backdrop_path"`
60
- Overview string `json:"overview"`
61
- OriginCountry []string `json:"origin_country"`
62
- Popularity float32 `json:"popularity"`
63
- VoteMetrics
64
- } `json:"tv_results,omitempty"`
65
- TvEpisodeResults []struct {
66
- AirDate string `json:"air_date"`
67
- EpisodeNumber int `json:"episode_number"`
68
- ID int64 `json:"id"`
69
- Name string `json:"name"`
70
- Overview string `json:"overview"`
71
- ProductionCode string `json:"production_code"`
72
- SeasonNumber int `json:"season_number"`
73
- ShowID int64 `json:"show_id"`
74
- StillPath string `json:"still_path"`
75
- VoteMetrics
76
- } `json:"tv_episode_results,omitempty"`
77
- TvSeasonResults []struct {
78
- AirDate string `json:"air_date"`
79
- Name string `json:"name"`
80
- ID int64 `json:"id"`
81
- SeasonNumber int `json:"season_number"`
82
- ShowID int64 `json:"show_id"`
83
- } `json:"tv_season_results,omitempty"`
7
+ MovieResults []MovieMedia `json:"movie_results"`
8
+ PersonResults []PersonResults `json:"person_results"`
9
+ TvResults []TVShowMedia `json:"tv_results"`
10
+ TvEpisodeResults []TVEpisodeMedia `json:"tv_episode_results"`
11
+ TvSeasonResults []TVSeasonMedia `json:"tv_season_results"`
84
12
}
85
13
86
14
// GetFindByID the find method makes it easy to search for objects in our
0 commit comments