jellyfin/MediaBrowser.Model/Querying/QueryResult.cs

32 lines
780 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
2018-12-27 18:27:57 -05:00
namespace MediaBrowser.Model.Querying
{
public class QueryResult<T>
{
/// <summary>
/// Gets or sets the items.
/// </summary>
/// <value>The items.</value>
public IReadOnlyList<T> Items { get; set; }
2018-12-27 18:27:57 -05:00
/// <summary>
/// The total number of records available
/// </summary>
/// <value>The total record count.</value>
public int TotalRecordCount { get; set; }
/// <summary>
/// The index of the first record in Items.
/// </summary>
/// <value>First record index.</value>
public int StartIndex { get; set; }
2018-12-27 18:27:57 -05:00
public QueryResult()
{
Items = Array.Empty<T>();
2018-12-27 18:27:57 -05:00
}
}
}