mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-01 20:54:13 -04:00
30 lines
795 B
C#
30 lines
795 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Kyoo.Models.Attributes;
|
|
|
|
namespace Kyoo.Models
|
|
{
|
|
public class Library : IResource
|
|
{
|
|
public int ID { get; set; }
|
|
public string Slug { get; set; }
|
|
public string Name { get; set; }
|
|
public string[] Paths { get; set; }
|
|
|
|
[EditableRelation] [LoadableRelation] public virtual ICollection<ProviderID> Providers { get; set; }
|
|
|
|
[LoadableRelation] public virtual ICollection<Show> Shows { get; set; }
|
|
[LoadableRelation] public virtual ICollection<Collection> Collections { get; set; }
|
|
|
|
public Library() { }
|
|
|
|
public Library(string slug, string name, IEnumerable<string> paths, IEnumerable<ProviderID> providers)
|
|
{
|
|
Slug = slug;
|
|
Name = name;
|
|
Paths = paths?.ToArray();
|
|
Providers = providers?.ToArray();
|
|
}
|
|
}
|
|
}
|