2025-03-15 01:39:43 +03:30

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; }
}