778e339a61
implement filterable meta for issue #158 update translations and use humanizer lib with datetime/timespan for issue #80
39 lines
833 B
C#
39 lines
833 B
C#
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 itesm to take
|
|
/// </summary>
|
|
public int Count { get; set; } = 100;
|
|
|
|
/// <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 enum SortDirection
|
|
{
|
|
Ascending,
|
|
Descending
|
|
}
|
|
}
|