Paginated Response
constructor(items: List<T>, page: Int, limit: Int, totalItems: Long, totalPages: Int, hasNext: Boolean, hasPrevious: Boolean)
Parameters
items
The list of items.
page
The current page.
limit
The number of items per page.
total Items
The total number of items.
total Pages
The total number of pages.
has Next
Whether there is a next page.
has Previous
Whether there is a previous page.
Type Parameters
T
The type of the items in the list.