mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Adding helper constructors
This commit is contained in:
parent
253b8561bc
commit
afcc6366e7
@ -11,7 +11,7 @@
|
||||
<Company>SDG</Company>
|
||||
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageVersion>1.0.11</PackageVersion>
|
||||
<PackageVersion>1.0.12</PackageVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -11,6 +11,12 @@ namespace Kyoo.Models
|
||||
|
||||
// public IEnumerable<Show> Shows { get; set; }
|
||||
|
||||
public Genre(string name)
|
||||
{
|
||||
Slug = Utility.ToSlug(name);
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public Genre(string slug, string name)
|
||||
{
|
||||
Slug = slug;
|
||||
|
@ -10,6 +10,12 @@ namespace Kyoo.Models
|
||||
|
||||
public Studio() { }
|
||||
|
||||
public Studio(string name)
|
||||
{
|
||||
Slug = Utility.ToSlug(name);
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public Studio(string slug, string name)
|
||||
{
|
||||
Slug = slug;
|
||||
|
Loading…
x
Reference in New Issue
Block a user