mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			944 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			944 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Collections.Generic;
 | 
						|
using Kyoo.Models.Attributes;
 | 
						|
 | 
						|
namespace Kyoo.Models
 | 
						|
{
 | 
						|
	/// <summary>
 | 
						|
	/// A studio that make shows.
 | 
						|
	/// </summary>
 | 
						|
	public class Studio : IResource
 | 
						|
	{
 | 
						|
		/// <inheritdoc />
 | 
						|
		public int ID { get; set; }
 | 
						|
		
 | 
						|
		/// <inheritdoc />
 | 
						|
		public string Slug { get; set; }
 | 
						|
		
 | 
						|
		/// <summary>
 | 
						|
		/// The name of this studio.
 | 
						|
		/// </summary>
 | 
						|
		public string Name { get; set; }
 | 
						|
		
 | 
						|
		/// <summary>
 | 
						|
		/// The list of shows that are made by this studio.
 | 
						|
		/// </summary>
 | 
						|
		[LoadableRelation] public ICollection<Show> Shows { get; set; }
 | 
						|
 | 
						|
		/// <summary>
 | 
						|
		/// Create a new, empty, <see cref="Studio"/>.
 | 
						|
		/// </summary>
 | 
						|
		public Studio() { }
 | 
						|
 | 
						|
		/// <summary>
 | 
						|
		/// Create a new <see cref="Studio"/> with a specific name, the slug is calculated automatically.
 | 
						|
		/// </summary>
 | 
						|
		/// <param name="name">The name of the studio.</param>
 | 
						|
		public Studio(string name)
 | 
						|
		{
 | 
						|
			Slug = Utility.ToSlug(name);
 | 
						|
			Name = name;
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |