Series.cs 1.5 KB

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