SeriesTimerInfoDto.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Diagnostics;
  5. using System.Runtime.Serialization;
  6. namespace MediaBrowser.Model.LiveTv
  7. {
  8. /// <summary>
  9. /// Class SeriesTimerInfoDto.
  10. /// </summary>
  11. [DebuggerDisplay("Name = {Name}")]
  12. public class SeriesTimerInfoDto : BaseTimerInfoDto
  13. {
  14. /// <summary>
  15. /// Gets or sets a value indicating whether [record any time].
  16. /// </summary>
  17. /// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value>
  18. public bool RecordAnyTime { get; set; }
  19. public bool SkipEpisodesInLibrary { get; set; }
  20. /// <summary>
  21. /// Gets or sets a value indicating whether [record any channel].
  22. /// </summary>
  23. /// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
  24. public bool RecordAnyChannel { get; set; }
  25. public int KeepUpTo { get; set; }
  26. /// <summary>
  27. /// Gets or sets a value indicating whether [record new only].
  28. /// </summary>
  29. /// <value><c>true</c> if [record new only]; otherwise, <c>false</c>.</value>
  30. public bool RecordNewOnly { get; set; }
  31. /// <summary>
  32. /// Gets or sets the days.
  33. /// </summary>
  34. /// <value>The days.</value>
  35. public List<DayOfWeek> Days { get; set; }
  36. /// <summary>
  37. /// Gets or sets the day pattern.
  38. /// </summary>
  39. /// <value>The day pattern.</value>
  40. public DayPattern? DayPattern { get; set; }
  41. /// <summary>
  42. /// Gets or sets the image tags.
  43. /// </summary>
  44. /// <value>The image tags.</value>
  45. public Dictionary<ImageType, string> ImageTags { get; set; }
  46. /// <summary>
  47. /// Gets a value indicating whether this instance has primary image.
  48. /// </summary>
  49. /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
  50. [IgnoreDataMember]
  51. public bool HasPrimaryImage
  52. {
  53. get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Primary); }
  54. }
  55. public SeriesTimerInfoDto()
  56. {
  57. ImageTags = new Dictionary<ImageType, string>();
  58. Days = new List<DayOfWeek>();
  59. }
  60. }
  61. }