SeriesTimerInfoDto.cs 2.8 KB

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