mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 05:34:23 -04:00
31 lines
867 B
C#
31 lines
867 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Kyoo.Models
|
|
{
|
|
public class PeopleLink
|
|
{
|
|
[JsonIgnore] public long ID { get; set; }
|
|
[JsonIgnore] public long PeopleID { get; set; }
|
|
public People People { get; set; }
|
|
[JsonIgnore] public long ShowID { get; set; }
|
|
[JsonIgnore] public Show Show { get; set; }
|
|
public string Role { get; set; }
|
|
public string Type { get; set; }
|
|
|
|
public PeopleLink() {}
|
|
|
|
public PeopleLink(People people, string role, string type)
|
|
{
|
|
People = people;
|
|
Role = role;
|
|
Type = type;
|
|
}
|
|
|
|
public PeopleLink(string slug, string name, string role, string type, string imgPrimary, string externalIDs)
|
|
{
|
|
People = new People(slug, name, imgPrimary, externalIDs);
|
|
Role = role;
|
|
Type = type;
|
|
}
|
|
}
|
|
} |