ProgramQuery.cs 3.7 KB

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