QueryResult.cs 780 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Model.Querying
  4. {
  5. public class QueryResult<T>
  6. {
  7. /// <summary>
  8. /// Gets or sets the items.
  9. /// </summary>
  10. /// <value>The items.</value>
  11. public IReadOnlyList<T> Items { get; set; }
  12. /// <summary>
  13. /// The total number of records available
  14. /// </summary>
  15. /// <value>The total record count.</value>
  16. public int TotalRecordCount { get; set; }
  17. /// <summary>
  18. /// The index of the first record in Items.
  19. /// </summary>
  20. /// <value>First record index.</value>
  21. public int StartIndex { get; set; }
  22. public QueryResult()
  23. {
  24. Items = Array.Empty<T>();
  25. }
  26. }
  27. }