2020-08-17 21:21:11 -05:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Dtos
|
2020-04-28 16:48:06 -05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 10:32:16 -06:00
|
|
|
|
/// pagination information holder class
|
2020-04-28 16:48:06 -05:00
|
|
|
|
/// </summary>
|
2020-08-17 21:21:11 -05:00
|
|
|
|
public class PaginationRequest
|
2020-04-28 16:48:06 -05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 10:32:16 -06:00
|
|
|
|
/// how many items to skip
|
2020-04-28 16:48:06 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public int Offset { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-06-02 16:48:47 -05:00
|
|
|
|
/// how many items to take
|
2020-04-28 16:48:06 -05:00
|
|
|
|
/// </summary>
|
2023-01-23 16:38:16 -06:00
|
|
|
|
public int Count { get; set; } = 30;
|
2020-04-28 16:48:06 -05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 10:32:16 -06:00
|
|
|
|
/// filter query
|
2020-04-28 16:48:06 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string Filter { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 10:32:16 -06:00
|
|
|
|
/// direction of ordering
|
2020-04-28 16:48:06 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public SortDirection Direction { get; set; } = SortDirection.Descending;
|
2020-08-17 21:21:11 -05:00
|
|
|
|
|
|
|
|
|
public DateTime? Before { get; set; }
|
2023-01-23 16:38:16 -06:00
|
|
|
|
|
|
|
|
|
public DateTime? After { get; set; }
|
2020-04-28 16:48:06 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum SortDirection
|
|
|
|
|
{
|
|
|
|
|
Ascending,
|
|
|
|
|
Descending
|
|
|
|
|
}
|
2022-06-02 16:48:47 -05:00
|
|
|
|
}
|