Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SearchResults

A single page of SearchResults. You can call SearchResults.next to fetch the next page of results. This is not intended to be created by an API consumer, but instead to be returned by search or Client.search.

Hierarchy

  • SearchResults

Index

Constructors

Properties

Methods

Constructors

constructor

  • Builds a new SearchResults. Not intended to be called directly by API consumers, as it only creates the object from omdb results.

    Parameters

    • obj: OmdbSearch

      Search results from omdb

    • page: number

      Page number we're fetching

    • opts: MovieOpts

      Stored options from our initial request

    • req: SearchRequest

      A reference to the original request

    Returns SearchResults

Properties

results

results: SearchResult[] = []

totalresults

totalresults: number

Methods

next

  • Returns the next page of search results

    Returns Promise<SearchResults>

    next page of search results

Generated using TypeDoc