mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-31 21:08:27 +01:00
Enable TreatWarningsAsErrors for MediaBrowser.Model
This commit is contained in:
@@ -8,24 +8,6 @@ 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; }
|
||||
|
||||
/// <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; }
|
||||
|
||||
public QueryResult()
|
||||
{
|
||||
Items = Array.Empty<T>();
|
||||
@@ -36,5 +18,23 @@ namespace MediaBrowser.Model.Querying
|
||||
Items = items;
|
||||
TotalRecordCount = items.Count;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the items.
|
||||
/// </summary>
|
||||
/// <value>The items.</value>
|
||||
public IReadOnlyList<T> Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the total number of records available.
|
||||
/// </summary>
|
||||
/// <value>The total record count.</value>
|
||||
public int TotalRecordCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the index of the first record in Items.
|
||||
/// </summary>
|
||||
/// <value>First record index.</value>
|
||||
public int StartIndex { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user