mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-18 13:04:15 -04:00
36 lines
603 B
C#
36 lines
603 B
C#
using System.Collections.Generic;
|
|
using Kyoo.Models.Attributes;
|
|
|
|
namespace Kyoo.Models
|
|
{
|
|
public class Genre : IResource
|
|
{
|
|
public int ID { get; set; }
|
|
public string Slug { get; set; }
|
|
public string Name { get; set; }
|
|
|
|
[LoadableRelation] public virtual ICollection<Show> Shows { get; set; }
|
|
|
|
public Genre() {}
|
|
|
|
public Genre(string name)
|
|
{
|
|
Slug = Utility.ToSlug(name);
|
|
Name = name;
|
|
}
|
|
|
|
public Genre(string slug, string name)
|
|
{
|
|
Slug = slug;
|
|
Name = name;
|
|
}
|
|
|
|
public Genre(int id, string slug, string name)
|
|
{
|
|
ID = id;
|
|
Slug = slug;
|
|
Name = name;
|
|
}
|
|
}
|
|
}
|