TimerInfo.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. public string ShowId { get; set; }
  32. /// <summary>
  33. /// Name of the recording.
  34. /// </summary>
  35. public string Name { get; set; }
  36. /// <summary>
  37. /// Description of the recording.
  38. /// </summary>
  39. public string Overview { get; set; }
  40. /// <summary>
  41. /// The start date of the recording, in UTC.
  42. /// </summary>
  43. public DateTime StartDate { get; set; }
  44. /// <summary>
  45. /// The end date of the recording, in UTC.
  46. /// </summary>
  47. public DateTime EndDate { get; set; }
  48. /// <summary>
  49. /// Gets or sets the status.
  50. /// </summary>
  51. /// <value>The status.</value>
  52. public RecordingStatus Status { get; set; }
  53. /// <summary>
  54. /// Gets or sets the pre padding seconds.
  55. /// </summary>
  56. /// <value>The pre padding seconds.</value>
  57. public int PrePaddingSeconds { get; set; }
  58. /// <summary>
  59. /// Gets or sets the post padding seconds.
  60. /// </summary>
  61. /// <value>The post padding seconds.</value>
  62. public int PostPaddingSeconds { get; set; }
  63. /// <summary>
  64. /// Gets or sets a value indicating whether this instance is pre padding required.
  65. /// </summary>
  66. /// <value><c>true</c> if this instance is pre padding required; otherwise, <c>false</c>.</value>
  67. public bool IsPrePaddingRequired { get; set; }
  68. /// <summary>
  69. /// Gets or sets a value indicating whether this instance is post padding required.
  70. /// </summary>
  71. /// <value><c>true</c> if this instance is post padding required; otherwise, <c>false</c>.</value>
  72. public bool IsPostPaddingRequired { get; set; }
  73. /// <summary>
  74. /// Gets or sets the priority.
  75. /// </summary>
  76. /// <value>The priority.</value>
  77. public int Priority { get; set; }
  78. // Program properties
  79. public int? SeasonNumber { get; set; }
  80. /// <summary>
  81. /// Gets or sets the episode number.
  82. /// </summary>
  83. /// <value>The episode number.</value>
  84. public int? EpisodeNumber { get; set; }
  85. public bool IsMovie { get; set; }
  86. public bool IsKids { get; set; }
  87. public bool IsSports { get; set; }
  88. public bool IsNews { get; set; }
  89. public int? ProductionYear { get; set; }
  90. public string EpisodeTitle { get; set; }
  91. public DateTime? OriginalAirDate { get; set; }
  92. public bool IsProgramSeries { get; set; }
  93. public bool IsRepeat { get; set; }
  94. public string HomePageUrl { get; set; }
  95. public float? CommunityRating { get; set; }
  96. public string ShortOverview { get; set; }
  97. public string OfficialRating { get; set; }
  98. public List<string> Genres { get; set; }
  99. public string RecordingPath { get; set; }
  100. public KeepUntil KeepUntil { get; set; }
  101. }
  102. }