You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Datastore
|
|
|
|
{
|
|
|
|
public class PagingSpec<TModel>
|
|
|
|
{
|
|
|
|
public int Page { get; set; }
|
|
|
|
public int PageSize { get; set; }
|
|
|
|
public int TotalRecords { get; set; }
|
|
|
|
public string SortKey { get; set; }
|
|
|
|
public SortDirection SortDirection { get; set; }
|
|
|
|
public List<TModel> Records { get; set; }
|
|
|
|
public List<Expression<Func<TModel, bool>>> FilterExpressions { get; set; }
|
|
|
|
|
|
|
|
public PagingSpec()
|
|
|
|
{
|
|
|
|
FilterExpressions = new List<Expression<Func<TModel, bool>>>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public enum SortDirection
|
|
|
|
{
|
|
|
|
Default,
|
|
|
|
Ascending,
|
|
|
|
Descending
|
|
|
|
}
|
|
|
|
}
|