mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Properly populate QueryResult
This commit is contained in:
@@ -19,6 +19,13 @@ namespace MediaBrowser.Model.Querying
|
||||
TotalRecordCount = items.Count;
|
||||
}
|
||||
|
||||
public QueryResult(int? startIndex, int? totalRecordCount, IReadOnlyList<T> items)
|
||||
{
|
||||
StartIndex = startIndex ?? 0;
|
||||
TotalRecordCount = totalRecordCount ?? items.Count;
|
||||
Items = items;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the items.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user