Series.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. public Series()
  15. {
  16. DateAdded = DateTime.UtcNow;
  17. Seasons = new HashSet<Season>();
  18. SeriesMetadata = new HashSet<SeriesMetadata>();
  19. }
  20. /// <summary>
  21. /// Gets or sets the days of week.
  22. /// </summary>
  23. public DayOfWeek? AirsDayOfWeek { get; set; }
  24. /// <summary>
  25. /// Gets or sets the time the show airs, ignore the date portion.
  26. /// </summary>
  27. public DateTimeOffset? AirsTime { get; set; }
  28. /// <summary>
  29. /// Gets or sets the date the series first aired.
  30. /// </summary>
  31. public DateTime? FirstAired { get; set; }
  32. /// <summary>
  33. /// Gets or sets a collection containing the series metadata.
  34. /// </summary>
  35. public virtual ICollection<SeriesMetadata> SeriesMetadata { get; protected set; }
  36. /// <summary>
  37. /// Gets or sets a collection containing the seasons.
  38. /// </summary>
  39. public virtual ICollection<Season> Seasons { get; protected set; }
  40. }
  41. }