mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 12:14:46 -04:00
36 lines
778 B
C#
36 lines
778 B
C#
using System.Collections.Generic;
|
|
using Kyoo.Models.Attributes;
|
|
|
|
namespace Kyoo.Models
|
|
{
|
|
public class ProviderID : IResource
|
|
{
|
|
public int ID { get; set; }
|
|
public string Slug { get; set; }
|
|
public string Name { get; set; }
|
|
public string Logo { get; set; }
|
|
|
|
[LoadableRelation] public virtual ICollection<Library> Libraries { get; set; }
|
|
|
|
#if ENABLE_INTERNAL_LINKS
|
|
[SerializeIgnore] public virtual ICollection<Link<Library, ProviderID>> LibraryLinks { get; set; }
|
|
#endif
|
|
|
|
public ProviderID() { }
|
|
|
|
public ProviderID(string name, string logo)
|
|
{
|
|
Slug = Utility.ToSlug(name);
|
|
Name = name;
|
|
Logo = logo;
|
|
}
|
|
|
|
public ProviderID(int id, string name, string logo)
|
|
{
|
|
ID = id;
|
|
Slug = Utility.ToSlug(name);
|
|
Name = name;
|
|
Logo = logo;
|
|
}
|
|
}
|
|
} |