using System;
namespace SharedLibraryCore.Dtos
{
///
/// pagination information holder class
///
public class PaginationRequest
{
///
/// how many items to skip
///
public int Offset { get; set; }
///
/// how many itesm to take
///
public int Count { get; set; } = 100;
///
/// filter query
///
public string Filter { get; set; }
///
/// direction of ordering
///
public SortDirection Direction { get; set; } = SortDirection.Descending;
public DateTime? Before { get; set; }
}
public enum SortDirection
{
Ascending,
Descending
}
}