2020-02-04 00:49:27 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
#pragma warning disable SA1600
|
|
|
|
|
2019-09-02 06:19:29 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
namespace MediaBrowser.Model.Querying
|
|
|
|
{
|
|
|
|
public class QueryResult<T>
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the items.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The items.</value>
|
2019-09-02 06:19:29 +00:00
|
|
|
public IReadOnlyList<T> Items { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The total number of records available
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The total record count.</value>
|
|
|
|
public int TotalRecordCount { get; set; }
|
|
|
|
|
2019-12-10 17:30:44 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The index of the first record in Items.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>First record index.</value>
|
|
|
|
public int StartIndex { get; set; }
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
public QueryResult()
|
|
|
|
{
|
2019-09-02 06:19:29 +00:00
|
|
|
Items = Array.Empty<T>();
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|