Lidarr/src/NzbDrone.Core/Datastore/PagingSpec.cs

30 lines
750 B
C#
Raw Normal View History

2018-03-15 01:28:46 +00:00
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
2013-05-02 05:50:34 +00:00
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; }
2018-03-15 01:28:46 +00:00
public List<Expression<Func<TModel, bool>>> FilterExpressions { get; set; }
public PagingSpec()
{
FilterExpressions = new List<Expression<Func<TModel, bool>>>();
}
}
public enum SortDirection
{
Default,
Ascending,
Descending
2013-05-02 05:50:34 +00:00
}
}