namespace Kyoo.Abstractions.Models { /// /// A role a person played for a show. It can be an actor, musician, voice actor, director, writer... /// /// /// This class is not serialized like other classes. /// Based on the field, it is serialized like /// a show with two extra fields ( and ). /// public class PeopleRole : IResource { /// public int ID { get; set; } /// public string Slug => ForPeople ? Show.Slug : People.Slug; /// /// Should this role be used as a Show substitute (the value is true) or /// as a People substitute (the value is false). /// public bool ForPeople { get; set; } /// /// The ID of the People playing the role. /// public int PeopleID { get; set; } /// /// The people that played this role. /// public People People { get; set; } /// /// The ID of the Show where the People playing in. /// public int ShowID { get; set; } /// /// The show where the People played in. /// public Show Show { get; set; } /// /// The type of work the person has done for the show. /// That can be something like "Actor", "Writer", "Music", "Voice Actor"... /// public string Type { get; set; } /// /// The role the People played. /// This is mostly used to inform witch character was played for actor and voice actors. /// public string Role { get; set; } } }