2020-08-17 22:21:11 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Dtos
|
2020-04-28 17:48:06 -04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// pagination information holder class
|
|
|
|
|
/// </summary>
|
2020-08-17 22:21:11 -04:00
|
|
|
|
public class PaginationRequest
|
2020-04-28 17:48:06 -04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// how many items to skip
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Offset { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// how many itesm to take
|
|
|
|
|
/// </summary>
|
2020-05-24 22:22:26 -04:00
|
|
|
|
public int Count { get; set; } = 100;
|
2020-04-28 17:48:06 -04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// filter query
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Filter { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// direction of ordering
|
|
|
|
|
/// </summary>
|
|
|
|
|
public SortDirection Direction { get; set; } = SortDirection.Descending;
|
2020-08-17 22:21:11 -04:00
|
|
|
|
|
|
|
|
|
public DateTime? Before { get; set; }
|
2020-04-28 17:48:06 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum SortDirection
|
|
|
|
|
{
|
|
|
|
|
Ascending,
|
|
|
|
|
Descending
|
|
|
|
|
}
|
|
|
|
|
}
|