mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-21 06:20:34 -04:00
27 lines
663 B
C#
27 lines
663 B
C#
using System.Collections.Generic;
|
|
using Kyoo.Models.Attributes;
|
|
|
|
namespace Kyoo.Models
|
|
{
|
|
public class People : IResource
|
|
{
|
|
public int ID { get; set; }
|
|
public string Slug { get; set; }
|
|
public string Name { get; set; }
|
|
public string Poster { get; set; }
|
|
[EditableRelation] public virtual IEnumerable<MetadataID> ExternalIDs { get; set; }
|
|
|
|
[EditableRelation] [JsonReadOnly] public virtual IEnumerable<PeopleRole> Roles { get; set; }
|
|
|
|
public People() {}
|
|
|
|
public People(string slug, string name, string poster, IEnumerable<MetadataID> externalIDs)
|
|
{
|
|
Slug = slug;
|
|
Name = name;
|
|
Poster = poster;
|
|
ExternalIDs = externalIDs;
|
|
}
|
|
}
|
|
}
|