ProgramQuery.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using MediaBrowser.Model.Entities;
  2. using System;
  3. namespace MediaBrowser.Model.LiveTv
  4. {
  5. /// <summary>
  6. /// Class ProgramQuery.
  7. /// </summary>
  8. public class ProgramQuery
  9. {
  10. public ProgramQuery()
  11. {
  12. ChannelIds = new string[] { };
  13. SortBy = new string[] { };
  14. Genres = new string[] { };
  15. }
  16. /// <summary>
  17. /// Gets or sets the channel ids.
  18. /// </summary>
  19. /// <value>The channel ids.</value>
  20. public string[] ChannelIds { get; set; }
  21. /// <summary>
  22. /// Gets or sets the user identifier.
  23. /// </summary>
  24. /// <value>The user identifier.</value>
  25. public string UserId { get; set; }
  26. /// <summary>
  27. /// The earliest date for which a program starts to return
  28. /// </summary>
  29. public DateTime? MinStartDate { get; set; }
  30. /// <summary>
  31. /// The latest date for which a program starts to return
  32. /// </summary>
  33. public DateTime? MaxStartDate { get; set; }
  34. /// <summary>
  35. /// The earliest date for which a program ends to return
  36. /// </summary>
  37. public DateTime? MinEndDate { get; set; }
  38. /// <summary>
  39. /// The latest date for which a program ends to return
  40. /// </summary>
  41. public DateTime? MaxEndDate { get; set; }
  42. /// <summary>
  43. /// Used to specific whether to return movies or not
  44. /// </summary>
  45. /// <remarks>If set to null, all programs will be returned</remarks>
  46. public bool? IsMovie { get; set; }
  47. /// <summary>
  48. /// Skips over a given number of items within the results. Use for paging.
  49. /// </summary>
  50. public int? StartIndex { get; set; }
  51. /// <summary>
  52. /// Gets or sets a value indicating whether this instance has aired.
  53. /// </summary>
  54. /// <value><c>null</c> if [has aired] contains no value, <c>true</c> if [has aired]; otherwise, <c>false</c>.</value>
  55. public bool? HasAired { get; set; }
  56. /// <summary>
  57. /// The maximum number of items to return
  58. /// </summary>
  59. public int? Limit { get; set; }
  60. /// <summary>
  61. /// What to sort the results by
  62. /// </summary>
  63. /// <value>The sort by.</value>
  64. public string[] SortBy { get; set; }
  65. /// <summary>
  66. /// The sort order to return results with
  67. /// </summary>
  68. /// <value>The sort order.</value>
  69. public SortOrder? SortOrder { get; set; }
  70. /// <summary>
  71. /// Limit results to items containing specific genres
  72. /// </summary>
  73. /// <value>The genres.</value>
  74. public string[] Genres { get; set; }
  75. }
  76. }