using System; using System.Collections.Generic; namespace Jellyfin.Data.Entities.Libraries { /// /// An entity representing a season. /// public class Season : LibraryItem { /// /// Initializes a new instance of the class. /// /// The series. public Season(Series series) { if (series == null) { throw new ArgumentNullException(nameof(series)); } series.Seasons.Add(this); Episodes = new HashSet(); SeasonMetadata = new HashSet(); } /// /// Initializes a new instance of the class. /// /// /// Default constructor. Protected due to required properties, but present because EF needs it. /// protected Season() { } /// /// Gets or sets the season number. /// public int? SeasonNumber { get; set; } /// /// Gets or sets the season metadata. /// public virtual ICollection SeasonMetadata { get; protected set; } /// /// Gets or sets a collection containing the number of episodes. /// public virtual ICollection Episodes { get; protected set; } } }