TimerInfo.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. using MediaBrowser.Model.LiveTv;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Controller.LiveTv
  5. {
  6. public class TimerInfo
  7. {
  8. public TimerInfo()
  9. {
  10. Genres = new List<string>();
  11. KeepUntil = KeepUntil.UntilDeleted;
  12. }
  13. /// <summary>
  14. /// Id of the recording.
  15. /// </summary>
  16. public string Id { get; set; }
  17. /// <summary>
  18. /// Gets or sets the series timer identifier.
  19. /// </summary>
  20. /// <value>The series timer identifier.</value>
  21. public string SeriesTimerId { get; set; }
  22. /// <summary>
  23. /// ChannelId of the recording.
  24. /// </summary>
  25. public string ChannelId { get; set; }
  26. /// <summary>
  27. /// Gets or sets the program identifier.
  28. /// </summary>
  29. /// <value>The program identifier.</value>
  30. public string ProgramId { get; set; }
  31. /// <summary>
  32. /// Name of the recording.
  33. /// </summary>
  34. public string Name { get; set; }
  35. /// <summary>
  36. /// Description of the recording.
  37. /// </summary>
  38. public string Overview { get; set; }
  39. /// <summary>
  40. /// The start date of the recording, in UTC.
  41. /// </summary>
  42. public DateTime StartDate { get; set; }
  43. /// <summary>
  44. /// The end date of the recording, in UTC.
  45. /// </summary>
  46. public DateTime EndDate { get; set; }
  47. /// <summary>
  48. /// Gets or sets the status.
  49. /// </summary>
  50. /// <value>The status.</value>
  51. public RecordingStatus Status { get; set; }
  52. /// <summary>
  53. /// Gets or sets the pre padding seconds.
  54. /// </summary>
  55. /// <value>The pre padding seconds.</value>
  56. public int PrePaddingSeconds { get; set; }
  57. /// <summary>
  58. /// Gets or sets the post padding seconds.
  59. /// </summary>
  60. /// <value>The post padding seconds.</value>
  61. public int PostPaddingSeconds { get; set; }
  62. /// <summary>
  63. /// Gets or sets a value indicating whether this instance is pre padding required.
  64. /// </summary>
  65. /// <value><c>true</c> if this instance is pre padding required; otherwise, <c>false</c>.</value>
  66. public bool IsPrePaddingRequired { get; set; }
  67. /// <summary>
  68. /// Gets or sets a value indicating whether this instance is post padding required.
  69. /// </summary>
  70. /// <value><c>true</c> if this instance is post padding required; otherwise, <c>false</c>.</value>
  71. public bool IsPostPaddingRequired { get; set; }
  72. /// <summary>
  73. /// Gets or sets the priority.
  74. /// </summary>
  75. /// <value>The priority.</value>
  76. public int Priority { get; set; }
  77. // Program properties
  78. public int? SeasonNumber { get; set; }
  79. /// <summary>
  80. /// Gets or sets the episode number.
  81. /// </summary>
  82. /// <value>The episode number.</value>
  83. public int? EpisodeNumber { get; set; }
  84. public bool IsMovie { get; set; }
  85. public bool IsKids { get; set; }
  86. public bool IsSports { get; set; }
  87. public bool IsNews { get; set; }
  88. public int? ProductionYear { get; set; }
  89. public string EpisodeTitle { get; set; }
  90. public DateTime? OriginalAirDate { get; set; }
  91. public bool IsProgramSeries { get; set; }
  92. public string HomePageUrl { get; set; }
  93. public float? CommunityRating { get; set; }
  94. public string ShortOverview { get; set; }
  95. public string OfficialRating { get; set; }
  96. public List<string> Genres { get; set; }
  97. public string RecordingPath { get; set; }
  98. public KeepUntil KeepUntil { get; set; }
  99. }
  100. }