Series.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Jellyfin.Data.Entities.Libraries
  4. {
  5. /// <summary>
  6. /// An entity representing a a series.
  7. /// </summary>
  8. public class Series : LibraryItem
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="Series"/> class.
  12. /// </summary>
  13. /// <param name="library">The library.</param>
  14. public Series(Library library) : base(library)
  15. {
  16. Seasons = new HashSet<Season>();
  17. SeriesMetadata = new HashSet<SeriesMetadata>();
  18. }
  19. /// <summary>
  20. /// Gets or sets the days of week.
  21. /// </summary>
  22. public DayOfWeek? AirsDayOfWeek { get; set; }
  23. /// <summary>
  24. /// Gets or sets the time the show airs, ignore the date portion.
  25. /// </summary>
  26. public DateTimeOffset? AirsTime { get; set; }
  27. /// <summary>
  28. /// Gets or sets the date the series first aired.
  29. /// </summary>
  30. public DateTime? FirstAired { get; set; }
  31. /// <summary>
  32. /// Gets a collection containing the series metadata.
  33. /// </summary>
  34. public virtual ICollection<SeriesMetadata> SeriesMetadata { get; private set; }
  35. /// <summary>
  36. /// Gets a collection containing the seasons.
  37. /// </summary>
  38. public virtual ICollection<Season> Seasons { get; private set; }
  39. }
  40. }