Add Biography to TranslationData

And apply the same "hack" that was applied to Name/Title to consolidate it with the Overview property.
This commit is contained in:
Mikal S 2023-09-01 14:19:12 +02:00 committed by GitHub
parent 2fa2e9df68
commit 6f57eb71fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,14 @@ namespace TMDbLib.Objects.General
[JsonProperty("overview")]
public string Overview { get; set; }
// Private hack to ensure two properties (overview, biography) are deserialized into Overview.
// Most of the entities have an overview, but people have a biography.
[JsonProperty("biography")]
private string Biography
{
set => Overview = value;
}
[JsonProperty("homepage")]
public string HomePage { get; set; }