mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
34 lines
573 B
C#
34 lines
573 B
C#
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Kyoo.Models
|
|
{
|
|
public class Studio
|
|
{
|
|
[JsonIgnore] public long ID { get; set; }
|
|
public string Slug { get; set; }
|
|
public string Name { get; set; }
|
|
|
|
public virtual IEnumerable<Show> Shows { get; set; }
|
|
|
|
public Studio() { }
|
|
|
|
public Studio(string name)
|
|
{
|
|
Slug = Utility.ToSlug(name);
|
|
Name = name;
|
|
}
|
|
|
|
public Studio(string slug, string name)
|
|
{
|
|
Slug = slug;
|
|
Name = name;
|
|
}
|
|
|
|
public static Studio Default()
|
|
{
|
|
return new Studio("unknow", "Unknow Studio");
|
|
}
|
|
}
|
|
}
|