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>
|
<Company>SDG</Company>
|
||||||
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
|
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
|
||||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||||
<PackageVersion>1.0.11</PackageVersion>
|
<PackageVersion>1.0.12</PackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -11,6 +11,12 @@ namespace Kyoo.Models
|
|||||||
|
|
||||||
// public IEnumerable<Show> Shows { get; set; }
|
// public IEnumerable<Show> Shows { get; set; }
|
||||||
|
|
||||||
|
public Genre(string name)
|
||||||
|
{
|
||||||
|
Slug = Utility.ToSlug(name);
|
||||||
|
Name = name;
|
||||||
|
}
|
||||||
|
|
||||||
public Genre(string slug, string name)
|
public Genre(string slug, string name)
|
||||||
{
|
{
|
||||||
Slug = slug;
|
Slug = slug;
|
||||||
|
@ -10,6 +10,12 @@ namespace Kyoo.Models
|
|||||||
|
|
||||||
public Studio() { }
|
public Studio() { }
|
||||||
|
|
||||||
|
public Studio(string name)
|
||||||
|
{
|
||||||
|
Slug = Utility.ToSlug(name);
|
||||||
|
Name = name;
|
||||||
|
}
|
||||||
|
|
||||||
public Studio(string slug, string name)
|
public Studio(string slug, string name)
|
||||||
{
|
{
|
||||||
Slug = slug;
|
Slug = slug;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user