2013-10-06 21:06:39 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq.Expressions;
|
2013-05-02 08:50:34 +03: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; }
|
2013-05-07 10:22:19 +03:00
|
|
|
public SortDirection SortDirection { get; set; }
|
|
|
|
public List<TModel> Records { get; set; }
|
2013-10-06 21:06:39 +03:00
|
|
|
public Expression<Func<TModel, bool>> FilterExpression { get; set; }
|
2013-05-07 10:22:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public enum SortDirection
|
|
|
|
{
|
|
|
|
Ascending,
|
|
|
|
Descending
|
2013-05-02 08:50:34 +03:00
|
|
|
}
|
|
|
|
}
|