PagedResult

public struct PagedResult<T> : Decodable where T : Decodable

Undocumented

  • Undocumented

    Declaration

    Swift

    public let result: T
  • Undocumented

    Declaration

    Swift

    public let info: PagedInfo
  • Returns true if the paged result has a next page of results. A next page contains results newer than the current page.

    Declaration

    Swift

    public var hasNext: Bool { get }
  • Returns true if the paged result has a previous page of results. A next page contains results older than the current page.

    Declaration

    Swift

    public var hasPrevious: Bool { get }
  • Returns pagination object for the next page of results if one is available

    Declaration

    Swift

    public var nextPage: PagedInfo? { get }
  • Returns pagination object for the previous page of results if one is available

    Declaration

    Swift

    public var previousPage: PagedInfo? { get }