mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			943 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			943 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Collections.Generic;
 | 
						|
using Kyoo.Models.Attributes;
 | 
						|
 | 
						|
namespace Kyoo.Models
 | 
						|
{
 | 
						|
	public class Collection : IResource
 | 
						|
	{
 | 
						|
		public int ID { get; set; }
 | 
						|
		public string Slug { get; set; }
 | 
						|
		public string Name { get; set; }
 | 
						|
		[SerializeAs("{HOST}/api/collection/{Slug}/poster")] public string Poster { get; set; }
 | 
						|
		public string Overview { get; set; }
 | 
						|
		[LoadableRelation] public virtual ICollection<Show> Shows { get; set; }
 | 
						|
		[LoadableRelation] public virtual ICollection<Library> Libraries { get; set; }
 | 
						|
 | 
						|
#if ENABLE_INTERNAL_LINKS
 | 
						|
		[SerializeIgnore] public virtual ICollection<Link<Collection, Show>> ShowLinks { get; set; }
 | 
						|
		[SerializeIgnore] public virtual ICollection<Link<Library, Collection>> LibraryLinks { get; set; }
 | 
						|
#endif
 | 
						|
		
 | 
						|
		public Collection() { }
 | 
						|
 | 
						|
		public Collection(string slug, string name, string overview, string poster)
 | 
						|
		{
 | 
						|
			Slug = slug;
 | 
						|
			Name = name;
 | 
						|
			Overview = overview;
 | 
						|
			Poster = poster;
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |