using System.Collections.Generic; using System.Linq; 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; } [SerializeAs("{HOST}/api/people/{Slug}/poster")] public string Poster { get; set; } [EditableRelation] [LoadableRelation] public virtual ICollection ExternalIDs { get; set; } [EditableRelation] [LoadableRelation] public virtual ICollection Roles { get; set; } public People() {} public People(string slug, string name, string poster, IEnumerable externalIDs) { Slug = slug; Name = name; Poster = poster; ExternalIDs = externalIDs?.ToArray(); } } }