mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-03 19:17:16 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			765 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			765 B
		
	
	
	
		
			C#
		
	
	
	
	
	
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<MetadataID> ExternalIDs { get; set; }
 | 
						|
		
 | 
						|
		[EditableRelation] [LoadableRelation] public virtual ICollection<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?.ToArray();
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |