mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-02 10:37:13 -05:00
26 lines
841 B
C#
26 lines
841 B
C#
using System.Collections.Generic;
|
|
using Kyoo.Models.Attributes;
|
|
|
|
namespace Kyoo.Models
|
|
{
|
|
public class Season : IResource
|
|
{
|
|
public int ID { get; set; }
|
|
public string Slug => $"{ShowSlug}-s{SeasonNumber}";
|
|
[SerializeIgnore] public int ShowID { get; set; }
|
|
[SerializeIgnore] public string ShowSlug { private get; set; }
|
|
[LoadableRelation(nameof(ShowID))] public virtual Show Show { get; set; }
|
|
|
|
public int SeasonNumber { get; set; } = -1;
|
|
|
|
public string Title { get; set; }
|
|
public string Overview { get; set; }
|
|
public int? Year { get; set; }
|
|
|
|
[SerializeAs("{HOST}/api/seasons/{Slug}/thumb")] public string Poster { get; set; }
|
|
[EditableRelation] [LoadableRelation] public virtual ICollection<MetadataID> ExternalIDs { get; set; }
|
|
|
|
[LoadableRelation] public virtual ICollection<Episode> Episodes { get; set; }
|
|
}
|
|
}
|