QueryResult.cs 591 B

12345678910111213141516171819202122232425
  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. public QueryResult()
  18. {
  19. Items = Array.Empty<T>();
  20. }
  21. }
  22. }