IW4M-Admin/SharedLibraryCore/Helpers/ResourceQueryHelperResult.cs

26 lines
804 B
C#
Raw Normal View History

2022-01-26 11:32:16 -05:00
using System.Collections.Generic;
namespace SharedLibraryCore.Helpers
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// generic class for passing information about a resource query
/// </summary>
/// <typeparam name="QueryResultType">Type of query result</typeparam>
public class ResourceQueryHelperResult<QueryResultType>
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// indicates the total number of results found
/// </summary>
public long TotalResultCount { get; set; }
/// <summary>
2022-01-26 11:32:16 -05:00
/// indicates the total number of results retrieved
/// </summary>
public int RetrievedResultCount { get; set; }
/// <summary>
2022-01-26 11:32:16 -05:00
/// collection of results
/// </summary>
public IEnumerable<QueryResultType> Results { get; set; }
}
2022-01-26 11:32:16 -05:00
}