ProgramQuery.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. using MediaBrowser.Model.Querying;
  4. namespace MediaBrowser.Model.LiveTv
  5. {
  6. /// <summary>
  7. /// Class ProgramQuery.
  8. /// </summary>
  9. public class ProgramQuery
  10. {
  11. public ProgramQuery()
  12. {
  13. ChannelIds = new string[] { };
  14. SortBy = new string[] { };
  15. Genres = new string[] { };
  16. EnableTotalRecordCount = true;
  17. EnableUserData = true;
  18. }
  19. public bool EnableTotalRecordCount { get; set; }
  20. public bool EnableUserData { get; set; }
  21. /// <summary>
  22. /// Fields to return within the items, in addition to basic information
  23. /// </summary>
  24. /// <value>The fields.</value>
  25. public ItemFields[] Fields { get; set; }
  26. public bool? EnableImages { get; set; }
  27. public int? ImageTypeLimit { get; set; }
  28. public ImageType[] EnableImageTypes { get; set; }
  29. /// <summary>
  30. /// Gets or sets the channel ids.
  31. /// </summary>
  32. /// <value>The channel ids.</value>
  33. public string[] ChannelIds { get; set; }
  34. /// <summary>
  35. /// Gets or sets the user identifier.
  36. /// </summary>
  37. /// <value>The user identifier.</value>
  38. public string UserId { get; set; }
  39. public string SeriesTimerId { get; set; }
  40. /// <summary>
  41. /// The earliest date for which a program starts to return
  42. /// </summary>
  43. public DateTime? MinStartDate { get; set; }
  44. /// <summary>
  45. /// The latest date for which a program starts to return
  46. /// </summary>
  47. public DateTime? MaxStartDate { get; set; }
  48. /// <summary>
  49. /// The earliest date for which a program ends to return
  50. /// </summary>
  51. public DateTime? MinEndDate { get; set; }
  52. /// <summary>
  53. /// The latest date for which a program ends to return
  54. /// </summary>
  55. public DateTime? MaxEndDate { get; set; }
  56. /// <summary>
  57. /// Used to specific whether to return news or not
  58. /// </summary>
  59. /// <remarks>If set to null, all programs will be returned</remarks>
  60. public bool? IsNews { get; set; }
  61. /// <summary>
  62. /// Used to specific whether to return movies or not
  63. /// </summary>
  64. /// <remarks>If set to null, all programs will be returned</remarks>
  65. public bool? IsMovie { get; set; }
  66. /// <summary>
  67. /// Gets or sets a value indicating whether this instance is kids.
  68. /// </summary>
  69. /// <value><c>null</c> if [is kids] contains no value, <c>true</c> if [is kids]; otherwise, <c>false</c>.</value>
  70. public bool? IsKids { get; set; }
  71. /// <summary>
  72. /// Gets or sets a value indicating whether this instance is sports.
  73. /// </summary>
  74. /// <value><c>null</c> if [is sports] contains no value, <c>true</c> if [is sports]; otherwise, <c>false</c>.</value>
  75. public bool? IsSports { get; set; }
  76. /// <summary>
  77. /// Skips over a given number of items within the results. Use for paging.
  78. /// </summary>
  79. public int? StartIndex { get; set; }
  80. public bool? IsSeries { get; set; }
  81. /// <summary>
  82. /// Gets or sets a value indicating whether this instance has aired.
  83. /// </summary>
  84. /// <value><c>null</c> if [has aired] contains no value, <c>true</c> if [has aired]; otherwise, <c>false</c>.</value>
  85. public bool? HasAired { get; set; }
  86. /// <summary>
  87. /// The maximum number of items to return
  88. /// </summary>
  89. public int? Limit { get; set; }
  90. /// <summary>
  91. /// What to sort the results by
  92. /// </summary>
  93. /// <value>The sort by.</value>
  94. public string[] SortBy { get; set; }
  95. /// <summary>
  96. /// The sort order to return results with
  97. /// </summary>
  98. /// <value>The sort order.</value>
  99. public SortOrder? SortOrder { get; set; }
  100. /// <summary>
  101. /// Limit results to items containing specific genres
  102. /// </summary>
  103. /// <value>The genres.</value>
  104. public string[] Genres { get; set; }
  105. }
  106. }