IW4M-Admin/SharedLibraryCore/Dtos/PaginationRequest.cs

38 lines
852 B
C#
Raw Normal View History

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