PaginatedResults

public struct PaginatedResults<T: Resource>

A structure which is returned by base framework calls which contains paginated results and the meta data associated with the current page. Uses generics to strongly type the fetched resources to the expected Resource type.

  • The number of results on this page.

    Declaration

    Swift

    public let number_of_page_results: Int?
  • The number of total results matching the filter conditions specified.

    Declaration

    Swift

    public let number_of_total_results: Int?
  • The value of the offset filter specified, or 0 if not specified.

    Declaration

    Swift

    public let offset: Int?
  • The API version returned by Giant Bomb’s API.

    Declaration

    Swift

    public let version: String?
  • Helper to decide whether there’s more results or not.

    Declaration

    Swift

    public var hasMoreResults: Bool
  • An array of objects generic to the request that made this call. For example, when fetching videos, this will contain an array of VideoResources.

    Declaration

    Swift

    public fileprivate(set) var resources = [T]()