RecommendedProgramQuery.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using MediaBrowser.Model.Entities;
  2. using MediaBrowser.Model.Querying;
  3. using System;
  4. namespace MediaBrowser.Model.LiveTv
  5. {
  6. public class RecommendedProgramQuery
  7. {
  8. /// <summary>
  9. /// Fields to return within the items, in addition to basic information
  10. /// </summary>
  11. /// <value>The fields.</value>
  12. public ItemFields[] Fields { get; set; }
  13. public bool? EnableImages { get; set; }
  14. public int? ImageTypeLimit { get; set; }
  15. public ImageType[] EnableImageTypes { get; set; }
  16. public Guid[] GenreIds { get; set; }
  17. public bool EnableTotalRecordCount { get; set; }
  18. public RecommendedProgramQuery()
  19. {
  20. EnableTotalRecordCount = true;
  21. GenreIds = new Guid[] { };
  22. }
  23. /// <summary>
  24. /// Gets or sets the user identifier.
  25. /// </summary>
  26. /// <value>The user identifier.</value>
  27. public string UserId { get; set; }
  28. /// <summary>
  29. /// Gets or sets a value indicating whether this instance is airing.
  30. /// </summary>
  31. /// <value><c>true</c> if this instance is airing; otherwise, <c>false</c>.</value>
  32. public bool? IsAiring { get; set; }
  33. /// <summary>
  34. /// Gets or sets a value indicating whether this instance has aired.
  35. /// </summary>
  36. /// <value><c>null</c> if [has aired] contains no value, <c>true</c> if [has aired]; otherwise, <c>false</c>.</value>
  37. public bool? HasAired { get; set; }
  38. /// <summary>
  39. /// The maximum number of items to return
  40. /// </summary>
  41. /// <value>The limit.</value>
  42. public int? Limit { get; set; }
  43. /// <summary>
  44. /// Gets or sets a value indicating whether this instance is movie.
  45. /// </summary>
  46. /// <value><c>null</c> if [is movie] contains no value, <c>true</c> if [is movie]; otherwise, <c>false</c>.</value>
  47. public bool? IsNews { get; set; }
  48. /// <summary>
  49. /// Gets or sets a value indicating whether this instance is movie.
  50. /// </summary>
  51. /// <value><c>null</c> if [is movie] contains no value, <c>true</c> if [is movie]; otherwise, <c>false</c>.</value>
  52. public bool? IsMovie { get; set; }
  53. public bool? IsSeries { get; set; }
  54. /// <summary>
  55. /// Gets or sets a value indicating whether this instance is kids.
  56. /// </summary>
  57. /// <value><c>null</c> if [is kids] contains no value, <c>true</c> if [is kids]; otherwise, <c>false</c>.</value>
  58. public bool? IsKids { get; set; }
  59. /// <summary>
  60. /// Gets or sets a value indicating whether this instance is sports.
  61. /// </summary>
  62. /// <value><c>null</c> if [is sports] contains no value, <c>true</c> if [is sports]; otherwise, <c>false</c>.</value>
  63. public bool? IsSports { get; set; }
  64. }
  65. }