From 85bba31928c572eaba538a609e833a2994537b40 Mon Sep 17 00:00:00 2001 From: Dinesh Solanki <15937452+DineshSolanki@users.noreply.github.com> Date: Wed, 14 Feb 2024 10:55:07 +0530 Subject: [PATCH] Add missing properties to SearchCollection class New properties have been added to the SearchCollection class as per TMDB API documentation. These include properties for 'adult', 'original language', 'original name', and 'overview' which were initially missing in the class definition. --- TMDbLib/Objects/Search/SearchCollection.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/TMDbLib/Objects/Search/SearchCollection.cs b/TMDbLib/Objects/Search/SearchCollection.cs index 7e6f8b9d..691f1db6 100644 --- a/TMDbLib/Objects/Search/SearchCollection.cs +++ b/TMDbLib/Objects/Search/SearchCollection.cs @@ -4,6 +4,9 @@ namespace TMDbLib.Objects.Search { public class SearchCollection { + [JsonProperty("adult")] + public bool Adult { get; set; } + [JsonProperty("backdrop_path")] public string BackdropPath { get; set; } @@ -12,6 +15,15 @@ public class SearchCollection [JsonProperty("name")] public string Name { get; set; } + + [JsonProperty("original_language")] + public string OriginalLanguage { get; set; } + + [JsonProperty("original_name")] + public string OriginalName { get; set; } + + [JsonProperty("overview")] + public string Overview { get; set; } [JsonProperty("poster_path")] public string PosterPath { get; set; }