2019-09-02 08:19:29 +02:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2018-12-28 00:27:57 +01:00
|
|
|
namespace MediaBrowser.Model.Querying
|
|
|
|
{
|
|
|
|
public class QueryResult<T>
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the items.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The items.</value>
|
2019-09-02 08:19:29 +02:00
|
|
|
public IReadOnlyList<T> Items { get; set; }
|
2018-12-28 00:27:57 +01:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The total number of records available
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The total record count.</value>
|
|
|
|
public int TotalRecordCount { get; set; }
|
|
|
|
|
|
|
|
public QueryResult()
|
|
|
|
{
|
2019-09-02 08:19:29 +02:00
|
|
|
Items = Array.Empty<T>();
|
2018-12-28 00:27:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|