| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | |
| | | 4 | | namespace Jellyfin.Database.Implementations.Entities.Libraries |
| | | 5 | | { |
| | | 6 | | /// <summary> |
| | | 7 | | /// An entity representing 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> |
| | 0 | 15 | | public Series(Library library) : base(library) |
| | | 16 | | { |
| | 0 | 17 | | Seasons = new HashSet<Season>(); |
| | 0 | 18 | | SeriesMetadata = new HashSet<SeriesMetadata>(); |
| | 0 | 19 | | } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Gets or sets the days of week. |
| | | 23 | | /// </summary> |
| | | 24 | | public DayOfWeek? AirsDayOfWeek { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Gets or sets the time the show airs, ignore the date portion. |
| | | 28 | | /// </summary> |
| | | 29 | | public DateTimeOffset? AirsTime { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary> |
| | | 32 | | /// Gets or sets the date the series first aired. |
| | | 33 | | /// </summary> |
| | | 34 | | public DateTime? FirstAired { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary> |
| | | 37 | | /// Gets a collection containing the series metadata. |
| | | 38 | | /// </summary> |
| | | 39 | | public virtual ICollection<SeriesMetadata> SeriesMetadata { get; private set; } |
| | | 40 | | |
| | | 41 | | /// <summary> |
| | | 42 | | /// Gets a collection containing the seasons. |
| | | 43 | | /// </summary> |
| | | 44 | | public virtual ICollection<Season> Seasons { get; private set; } |
| | | 45 | | } |
| | | 46 | | } |