ItemsByNameQuery.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using MediaBrowser.Model.Entities;
  2. namespace MediaBrowser.Model.Querying
  3. {
  4. /// <summary>
  5. /// Class ItemsByNameQuery
  6. /// </summary>
  7. public class ItemsByNameQuery
  8. {
  9. /// <summary>
  10. /// Gets or sets the user id.
  11. /// </summary>
  12. /// <value>The user id.</value>
  13. public string UserId { get; set; }
  14. /// <summary>
  15. /// Gets or sets the start index.
  16. /// </summary>
  17. /// <value>The start index.</value>
  18. public int? StartIndex { get; set; }
  19. /// <summary>
  20. /// Gets or sets the size of the page.
  21. /// </summary>
  22. /// <value>The size of the page.</value>
  23. public int? Limit { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether this <see cref="ItemsByNameQuery" /> is recursive.
  26. /// </summary>
  27. /// <value><c>true</c> if recursive; otherwise, <c>false</c>.</value>
  28. public bool Recursive { get; set; }
  29. /// <summary>
  30. /// Gets or sets the sort order.
  31. /// </summary>
  32. /// <value>The sort order.</value>
  33. public SortOrder? SortOrder { get; set; }
  34. /// <summary>
  35. /// Gets or sets the parent id.
  36. /// </summary>
  37. /// <value>The parent id.</value>
  38. public string ParentId { get; set; }
  39. /// <summary>
  40. /// Fields to return within the items, in addition to basic information
  41. /// </summary>
  42. /// <value>The fields.</value>
  43. public ItemFields[] Fields { get; set; }
  44. /// <summary>
  45. /// Gets or sets the filters.
  46. /// </summary>
  47. /// <value>The filters.</value>
  48. public ItemFilter[] Filters { get; set; }
  49. /// <summary>
  50. /// Gets or sets the exclude item types.
  51. /// </summary>
  52. /// <value>The exclude item types.</value>
  53. public string[] ExcludeItemTypes { get; set; }
  54. /// <summary>
  55. /// Gets or sets the include item types.
  56. /// </summary>
  57. /// <value>The include item types.</value>
  58. public string[] IncludeItemTypes { get; set; }
  59. /// <summary>
  60. /// Gets or sets the media types.
  61. /// </summary>
  62. /// <value>The media types.</value>
  63. public string[] MediaTypes { get; set; }
  64. /// <summary>
  65. /// What to sort the results by
  66. /// </summary>
  67. /// <value>The sort by.</value>
  68. public string[] SortBy { get; set; }
  69. /// <summary>
  70. /// Gets or sets the image types.
  71. /// </summary>
  72. /// <value>The image types.</value>
  73. public ImageType[] ImageTypes { get; set; }
  74. /// <summary>
  75. /// Gets or sets the name starts with or greater.
  76. /// </summary>
  77. /// <value>The name starts with or greater.</value>
  78. public string NameStartsWithOrGreater { get; set; }
  79. /// <summary>
  80. /// Gets or sets the name starts with
  81. /// </summary>
  82. /// <value>The name starts with or greater.</value>
  83. public string NameStartsWith { get; set; }
  84. /// Gets or sets the name less than.
  85. /// </summary>
  86. /// <value>The name less than.</value>
  87. public string NameLessThan { get; set; }
  88. /// <summary>
  89. /// Gets or sets a value indicating whether this instance is played.
  90. /// </summary>
  91. /// <value><c>null</c> if [is played] contains no value, <c>true</c> if [is played]; otherwise, <c>false</c>.</value>
  92. public bool? IsPlayed { get; set; }
  93. /// <summary>
  94. /// Initializes a new instance of the <see cref="ItemsByNameQuery" /> class.
  95. /// </summary>
  96. public ItemsByNameQuery()
  97. {
  98. ImageTypes = new ImageType[] { };
  99. Filters = new ItemFilter[] { };
  100. Fields = new ItemFields[] { };
  101. Recursive = true;
  102. MediaTypes = new string[] { };
  103. SortBy = new string[] { };
  104. ExcludeItemTypes = new string[] { };
  105. IncludeItemTypes = new string[] { };
  106. }
  107. }
  108. }