35 lines
761 B
C#
35 lines
761 B
C#
|
namespace SharedLibraryCore.Dtos
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// pagination information holder class
|
|||
|
/// </summary>
|
|||
|
public class PaginationInfo
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// how many items to skip
|
|||
|
/// </summary>
|
|||
|
public int Offset { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// how many itesm to take
|
|||
|
/// </summary>
|
|||
|
public int Count { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// filter query
|
|||
|
/// </summary>
|
|||
|
public string Filter { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// direction of ordering
|
|||
|
/// </summary>
|
|||
|
public SortDirection Direction { get; set; } = SortDirection.Descending;
|
|||
|
}
|
|||
|
|
|||
|
public enum SortDirection
|
|||
|
{
|
|||
|
Ascending,
|
|||
|
Descending
|
|||
|
}
|
|||
|
}
|