aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Querying/QueryResult.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Querying/QueryResult.cs')
-rw-r--r--MediaBrowser.Model/Querying/QueryResult.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Querying/QueryResult.cs b/MediaBrowser.Model/Querying/QueryResult.cs
index 8ce794800..ea843f34c 100644
--- a/MediaBrowser.Model/Querying/QueryResult.cs
+++ b/MediaBrowser.Model/Querying/QueryResult.cs
@@ -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>