-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathPaginationRequest.cs
40 lines (33 loc) · 906 Bytes
/
PaginationRequest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
namespace SharedLibraryCore.Dtos
{
/// <summary>
/// pagination information holder class
/// </summary>
public class PaginationRequest
{
/// <summary>
/// how many items to skip
/// </summary>
public int Offset { get; set; }
/// <summary>
/// how many items to take
/// </summary>
public int Count { get; set; } = 30;
/// <summary>
/// filter query
/// </summary>
public string Filter { get; set; }
/// <summary>
/// direction of ordering
/// </summary>
public SortDirection Direction { get; set; } = SortDirection.Descending;
public DateTime? Before { get; set; }
public DateTime? After { get; set; }
}
public enum SortDirection
{
Ascending,
Descending
}
}