diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-02-23 12:54:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-23 12:54:05 +0100 |
| commit | e09e67deae5fc19a830178b9a7574c7c23e282bc (patch) | |
| tree | c46d2efa0e8e17203f1ea865233324616f707c05 /MediaBrowser.Model/Querying/QueryResult.cs | |
| parent | ff10dd9e127068fc058e17b21628d2679013ac8a (diff) | |
| parent | 7ece3c552337340a997a75aab1520a501a673f61 (diff) | |
Merge branch 'master' into tests11
Diffstat (limited to 'MediaBrowser.Model/Querying/QueryResult.cs')
| -rw-r--r-- | MediaBrowser.Model/Querying/QueryResult.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/MediaBrowser.Model/Querying/QueryResult.cs b/MediaBrowser.Model/Querying/QueryResult.cs index 490f48b84..8ce794800 100644 --- a/MediaBrowser.Model/Querying/QueryResult.cs +++ b/MediaBrowser.Model/Querying/QueryResult.cs @@ -8,6 +8,17 @@ namespace MediaBrowser.Model.Querying { public class QueryResult<T> { + public QueryResult() + { + Items = Array.Empty<T>(); + } + + public QueryResult(IReadOnlyList<T> items) + { + Items = items; + TotalRecordCount = items.Count; + } + /// <summary> /// Gets or sets the items. /// </summary> @@ -15,26 +26,15 @@ namespace MediaBrowser.Model.Querying public IReadOnlyList<T> Items { get; set; } /// <summary> - /// The total number of records available. + /// Gets or sets 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. + /// Gets or sets 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>(); - } - - public QueryResult(IReadOnlyList<T> items) - { - Items = items; - TotalRecordCount = items.Count; - } } } |
