Use Name and title interchangeably.

This commit is contained in:
Michael Bisbjerg 2022-06-06 13:45:46 +02:00
parent a86bffb678
commit fb47fe45a6

View File

@ -4,8 +4,16 @@ namespace TMDbLib.Objects.General
{
public class TranslationData
{
[JsonProperty("name")]
public string Name { get; set; }
// Private hack to ensure two properties (name, title) are deserialized into Name.
// Tv Shows and Movies will use different names for their translation data.
[JsonProperty("title")]
public string Title { get; set; }
private string Title
{
set => Name = value;
}
[JsonProperty("overview")]
public string Overview { get; set; }