using System.Collections.Generic;
using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Abstractions.Models
{
///
/// A genre that allow one to specify categories for shows.
///
public class Genre : IResource
{
///
public int ID { get; set; }
///
public string Slug { get; set; }
///
/// The name of this genre.
///
public string Name { get; set; }
///
/// The list of shows that have this genre.
///
[LoadableRelation] public ICollection Shows { get; set; }
///
/// Create a new, empty .
///
public Genre() {}
///
/// Create a new and specify it's .
/// The is automatically calculated from it's name.
///
/// The name of this genre.
public Genre(string name)
{
Slug = Utility.ToSlug(name);
Name = name;
}
}
}