SeriesTimerInfoDto.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Entities;
  4. namespace MediaBrowser.Model.LiveTv
  5. {
  6. /// <summary>
  7. /// Class SeriesTimerInfoDto.
  8. /// </summary>
  9. public class SeriesTimerInfoDto : BaseTimerInfoDto
  10. {
  11. public SeriesTimerInfoDto()
  12. {
  13. ImageTags = new Dictionary<ImageType, string>();
  14. Days = new DayOfWeek[] { };
  15. Type = "SeriesTimer";
  16. }
  17. /// <summary>
  18. /// Gets or sets a value indicating whether [record any time].
  19. /// </summary>
  20. /// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value>
  21. public bool RecordAnyTime { get; set; }
  22. public bool SkipEpisodesInLibrary { get; set; }
  23. /// <summary>
  24. /// Gets or sets a value indicating whether [record any channel].
  25. /// </summary>
  26. /// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
  27. public bool RecordAnyChannel { get; set; }
  28. public int KeepUpTo { get; set; }
  29. /// <summary>
  30. /// Gets or sets a value indicating whether [record new only].
  31. /// </summary>
  32. /// <value><c>true</c> if [record new only]; otherwise, <c>false</c>.</value>
  33. public bool RecordNewOnly { get; set; }
  34. /// <summary>
  35. /// Gets or sets the days.
  36. /// </summary>
  37. /// <value>The days.</value>
  38. public DayOfWeek[] Days { get; set; }
  39. /// <summary>
  40. /// Gets or sets the day pattern.
  41. /// </summary>
  42. /// <value>The day pattern.</value>
  43. public DayPattern? DayPattern { get; set; }
  44. /// <summary>
  45. /// Gets or sets the image tags.
  46. /// </summary>
  47. /// <value>The image tags.</value>
  48. public Dictionary<ImageType, string> ImageTags { get; set; }
  49. /// <summary>
  50. /// Gets or sets the parent thumb item id.
  51. /// </summary>
  52. /// <value>The parent thumb item id.</value>
  53. public string ParentThumbItemId { get; set; }
  54. /// <summary>
  55. /// Gets or sets the parent thumb image tag.
  56. /// </summary>
  57. /// <value>The parent thumb image tag.</value>
  58. public string ParentThumbImageTag { get; set; }
  59. /// <summary>
  60. /// Gets or sets the parent primary image item identifier.
  61. /// </summary>
  62. /// <value>The parent primary image item identifier.</value>
  63. public string ParentPrimaryImageItemId { get; set; }
  64. /// <summary>
  65. /// Gets or sets the parent primary image tag.
  66. /// </summary>
  67. /// <value>The parent primary image tag.</value>
  68. public string ParentPrimaryImageTag { get; set; }
  69. }
  70. public enum KeepUntil
  71. {
  72. UntilDeleted,
  73. UntilSpaceNeeded,
  74. UntilWatched,
  75. UntilDate
  76. }
  77. }