PaginationData
public struct PaginationData : Decodable, Equatable
Represents pagination data.
-
The size of the page.
Declaration
Swift
public let size: Int
-
The total number of elements.
Declaration
Swift
public let totalElements: Int
-
The total number of pages.
Declaration
Swift
public let totalPages: Int
-
The current page number.
Declaration
Swift
public let number: Int
-
The requested page size.
Declaration
Swift
public let requestedPageSize: Int
-
Initializes a
PaginationData
.Declaration
Swift
public init( size: Int, totalElements: Int, totalPages: Int, number: Int, requestedPageSize: Int )
Parameters
size
The size of the page.
totalElements
The total number of elements.
totalPages
The total number of pages.
number
The current page number.
requestedPageSize
The requested page size.