def setPaginationConsistentWith()

in client/src/main/scala/com.gu.contentapi.client/model/Queries.scala [42:62]


  def setPaginationConsistentWith(response: Response): PaginatedApiQuery[Response, Element]

  def followingQueryGiven(response: Response, direction: Direction): Option[PaginatedApiQuery[Response, Element]] =
    if (response.impliesNoFurtherResults) None else setPaginationConsistentWith(response).followingQueryGivenFull(response, direction)

  /** Construct a query for the subsequent results after this response. This method will only be called if the
    * response was supplied a full page of results, meaning that there's the possibility of more results to fetch.
    */
  protected def followingQueryGivenFull(response: Response, direction: Direction): Option[PaginatedApiQuery[Response, Element]]
}

trait SearchQueryBase[Self <: SearchQueryBase[Self]]
  extends ContentApiQuery[SearchResponse]
     with ShowParameters[Self]
     with ShowReferencesParameters[Self]
     with OrderByParameter[Self]
     with UseDateParameter[Self]
     with PaginationParameters[Self]
     with FilterParameters[Self]
     with FilterExtendedParameters[Self]
     with FilterSearchParameters[Self] {