Merge pull request #400 from angyanmark/features/tvshow-recommendations-similar-searchcontainer

TV show 'recommendations' and 'similar' as SearchContainer<SearchTv>
This commit is contained in:
Michael Bisbjerg 2023-01-09 22:01:54 +01:00 committed by GitHub
commit 6a9c237126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -150,9 +150,6 @@ namespace TMDbLib.Client
if (item.AccountStates != null)
item.AccountStates.Id = id;
if (item.Recommendations != null)
item.Recommendations.Id = id;
if (item.ExternalIds != null)
item.ExternalIds.Id = id;

View File

@ -127,7 +127,7 @@ namespace TMDbLib.Objects.TvShows
public List<ProductionCountry> ProductionCountries { get; set; }
[JsonProperty("recommendations")]
public ResultContainer<TvShow> Recommendations { get; set; }
public SearchContainer<SearchTv> Recommendations { get; set; }
[JsonProperty("reviews")]
public SearchContainer<ReviewBase> Reviews { get; set; }
@ -136,7 +136,7 @@ namespace TMDbLib.Objects.TvShows
public List<SearchTvSeason> Seasons { get; set; }
[JsonProperty("similar")]
public ResultContainer<TvShow> Similar { get; set; }
public SearchContainer<SearchTv> Similar { get; set; }
[JsonProperty("spoken_languages")]
public List<SpokenLanguage> SpokenLanguages { get; set; }