FF-1981: TV Show Lookup using cache

This commit is contained in:
John Andrews
2025-01-31 08:39:22 +13:00
parent 239e68ad98
commit 0d4be92d97
2 changed files with 1 additions and 8 deletions
@@ -10,20 +10,14 @@ public class Keyword : IEqualityComparer<Keyword>
/// The keyword Id as identified by theMovieDB.org.
/// </summary>
[DataMember( Name = "id" )]
[JsonPropertyName("id")]
public int Id { get; set; }
/// <summary>
/// The keyword.
/// </summary>
[DataMember( Name = "name" )]
[JsonPropertyName("name")]
public string Name { get; set; }
public Keyword()
{
}
public Keyword( int id, string name )
{
@@ -170,8 +170,7 @@ public class TVShow
/// Gets or sets the list of keywords associated with the TV show.
/// </summary>
[DataMember(Name = "keywords")]
[JsonPropertyName("keywords")]
public List<Keyword> Keywords { get; set; }
public IReadOnlyCollection<Keyword> Keywords { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="TVShow"/> class.