mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
* Fix warnings, improve performance `QueryResult.Items` is now a `IReadOnlyList` so we don't need to allocate a new `Array` when we have a `List` (and `Items` shouldn't need to be mutable anyway) * Update Providers .csproj to latest C# * Remove extra newline from DtoService.cs * Remove extra newline from UserLibraryService.cs
25 lines
591 B
C#
25 lines
591 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MediaBrowser.Model.Querying
|
|
{
|
|
public class QueryResult<T>
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the items.
|
|
/// </summary>
|
|
/// <value>The items.</value>
|
|
public IReadOnlyList<T> Items { get; set; }
|
|
|
|
/// <summary>
|
|
/// The total number of records available
|
|
/// </summary>
|
|
/// <value>The total record count.</value>
|
|
public int TotalRecordCount { get; set; }
|
|
|
|
public QueryResult()
|
|
{
|
|
Items = Array.Empty<T>();
|
|
}
|
|
}
|
|
}
|