mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-13 04:06:07 +08:00
17 lines
424 B
C#
17 lines
424 B
C#
namespace BuildingBlocks.Core.Pagination;
|
|
|
|
public interface IPageList<T>
|
|
where T : class
|
|
{
|
|
int CurrentPageSize { get; }
|
|
int CurrentStartIndex { get; }
|
|
int CurrentEndIndex { get; }
|
|
int TotalPages { get; }
|
|
bool HasPrevious { get; }
|
|
bool HasNext { get; }
|
|
IReadOnlyList<T> Items { get; init; }
|
|
int TotalCount { get; init; }
|
|
int PageNumber { get; init; }
|
|
int PageSize { get; init; }
|
|
}
|