mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-30 19:54:16 -04:00
29 lines
721 B
C#
29 lines
721 B
C#
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Kyoo.Models
|
|
{
|
|
public class Library : IResource
|
|
{
|
|
[JsonIgnore] public int ID { get; set; }
|
|
public string Slug { get; set; }
|
|
public string Name { get; set; }
|
|
public IEnumerable<string> Paths { get; set; }
|
|
|
|
public virtual IEnumerable<ProviderID> Providers { get; set; }
|
|
|
|
[JsonIgnore] public virtual IEnumerable<Show> Shows { get; set; }
|
|
[JsonIgnore] public virtual IEnumerable<Collection> Collections { get; set; }
|
|
|
|
public Library() { }
|
|
|
|
public Library(string slug, string name, IEnumerable<string> paths, IEnumerable<ProviderID> providers)
|
|
{
|
|
Slug = slug;
|
|
Name = name;
|
|
Paths = paths;
|
|
Providers = providers;
|
|
}
|
|
}
|
|
}
|