mirror of
https://github.com/jellyfin/TMDbLib.git
synced 2024-11-23 13:50:14 +00:00
Use Name and title interchangeably.
This commit is contained in:
parent
a86bffb678
commit
fb47fe45a6
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user