#nullable disable #pragma warning disable CS1591 using System; using System.Collections.Generic; namespace MediaBrowser.Model.Querying { public class QueryResult { public QueryResult() { Items = Array.Empty(); } public QueryResult(IReadOnlyList items) { Items = items; TotalRecordCount = items.Count; } public QueryResult(int? startIndex, int? totalRecordCount, IReadOnlyList items) { StartIndex = startIndex ?? 0; TotalRecordCount = totalRecordCount ?? items.Count; Items = items; } /// /// Gets or sets the items. /// /// The items. public IReadOnlyList Items { get; set; } /// /// Gets or sets the total number of records available. /// /// The total record count. public int TotalRecordCount { get; set; } /// /// Gets or sets the index of the first record in Items. /// /// First record index. public int StartIndex { get; set; } } }