Season.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma warning disable CA2227
  2. using System.Collections.Generic;
  3. namespace Jellyfin.Data.Entities.Libraries
  4. {
  5. /// <summary>
  6. /// An entity representing a season.
  7. /// </summary>
  8. public class Season : LibraryItem
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="Season"/> class.
  12. /// </summary>
  13. /// <param name="library">The library.</param>
  14. public Season(Library library) : base(library)
  15. {
  16. Episodes = new HashSet<Episode>();
  17. SeasonMetadata = new HashSet<SeasonMetadata>();
  18. }
  19. /// <summary>
  20. /// Gets or sets the season number.
  21. /// </summary>
  22. public int? SeasonNumber { get; set; }
  23. /// <summary>
  24. /// Gets or sets the season metadata.
  25. /// </summary>
  26. public virtual ICollection<SeasonMetadata> SeasonMetadata { get; protected set; }
  27. /// <summary>
  28. /// Gets or sets a collection containing the number of episodes.
  29. /// </summary>
  30. public virtual ICollection<Episode> Episodes { get; protected set; }
  31. }
  32. }