Merge pull request #7225 from crobibero/query-result

This commit is contained in:
Bond-009
2022-01-21 19:50:08 +01:00
committed by GitHub
27 changed files with 209 additions and 297 deletions

View File

@@ -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>