2
0

ProgramQuery.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. OrderBy = new Tuple<string, SortOrder>[] { };
  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. public string Name { get; set; }
  41. /// <summary>
  42. /// The earliest date for which a program starts to return
  43. /// </summary>
  44. public DateTime? MinStartDate { get; set; }
  45. /// <summary>
  46. /// The latest date for which a program starts to return
  47. /// </summary>
  48. public DateTime? MaxStartDate { get; set; }
  49. /// <summary>
  50. /// The earliest date for which a program ends to return
  51. /// </summary>
  52. public DateTime? MinEndDate { get; set; }
  53. /// <summary>
  54. /// The latest date for which a program ends to return
  55. /// </summary>
  56. public DateTime? MaxEndDate { get; set; }
  57. /// <summary>
  58. /// Used to specific whether to return news or not
  59. /// </summary>
  60. /// <remarks>If set to null, all programs will be returned</remarks>
  61. public bool? IsNews { get; set; }
  62. /// <summary>
  63. /// Used to specific whether to return movies or not
  64. /// </summary>
  65. /// <remarks>If set to null, all programs will be returned</remarks>
  66. public bool? IsMovie { get; set; }
  67. /// <summary>
  68. /// Gets or sets a value indicating whether this instance is kids.
  69. /// </summary>
  70. /// <value><c>null</c> if [is kids] contains no value, <c>true</c> if [is kids]; otherwise, <c>false</c>.</value>
  71. public bool? IsKids { get; set; }
  72. /// <summary>
  73. /// Gets or sets a value indicating whether this instance is sports.
  74. /// </summary>
  75. /// <value><c>null</c> if [is sports] contains no value, <c>true</c> if [is sports]; otherwise, <c>false</c>.</value>
  76. public bool? IsSports { get; set; }
  77. /// <summary>
  78. /// Skips over a given number of items within the results. Use for paging.
  79. /// </summary>
  80. public int? StartIndex { get; set; }
  81. public bool? IsSeries { get; set; }
  82. /// <summary>
  83. /// Gets or sets a value indicating whether this instance has aired.
  84. /// </summary>
  85. /// <value><c>null</c> if [has aired] contains no value, <c>true</c> if [has aired]; otherwise, <c>false</c>.</value>
  86. public bool? HasAired { get; set; }
  87. /// <summary>
  88. /// The maximum number of items to return
  89. /// </summary>
  90. public int? Limit { get; set; }
  91. public Tuple<string, SortOrder>[] OrderBy { get; set; }
  92. /// <summary>
  93. /// Limit results to items containing specific genres
  94. /// </summary>
  95. /// <value>The genres.</value>
  96. public string[] Genres { get; set; }
  97. }
  98. }