ProgramQuery.cs 4.0 KB

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