PaginatedResponse

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.

totalItems

The total number of items.

totalPages

The total number of pages.

hasNext

Whether there is a next page.

hasPrevious

Whether there is a previous page.

Type Parameters

T

The type of the items in the list.