PageInfo

public struct PageInfo
extension PageInfo: Codable
extension PageInfo: JSONDecodable
extension PageInfo: DictionaryConvertible
extension PageInfo: Equatable

Information about one page when doing paginate request.

  • Undocumented

    Declaration

    Swift

    public var globalStamp: Int
  • The number of elementin this page

    Declaration

    Swift

    public var sent: Int
  • The first element of this page

    Declaration

    Swift

    public var first: Int
  • The total number of element

    Declaration

    Swift

    public var count: Int
  • Undocumented

    Declaration

    Swift

    public init(globalStamp: Int, sent: Int, first: Int, count: Int)

JSON

DictionaryConvertible

Equatable

  • Declaration

    Swift

    public static func == (lhf: PageInfo, rhf: PageInfo) -> Bool

Utility methods

  • Return true if no record in page.

    Declaration

    Swift

    public var isEmpty: Bool { get }
  • Last page index

    Declaration

    Swift

    public var last: Int { get }
  • id of next page.

    Declaration

    Swift

    public var next: Int { get }
  • true if first is equel to 0

    Declaration

    Swift

    public var isFirst: Bool { get }
  • true if this page is the last one.

    Declaration

    Swift

    public var isLast: Bool { get }