mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			974 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			974 B
		
	
	
	
		
			C#
		
	
	
	
	
	
#nullable disable
 | 
						|
#pragma warning disable CS1591
 | 
						|
 | 
						|
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; }
 | 
						|
 | 
						|
        /// <summary>
 | 
						|
        /// 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;
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |