CIOBrowseFacetsQueryBuilder

public class CIOBrowseFacetsQueryBuilder

Request builder for creating an browse facets query.

  • Create a Browse Facets request query builder

    Declaration

    Swift

    public init()
  • Add a page number

    Declaration

    Swift

    public func setPage(_ page: Int) -> CIOBrowseFacetsQueryBuilder
  • Add the number of results to return per page

    Declaration

    Swift

    public func setPerPage(_ perPage: Int) -> CIOBrowseFacetsQueryBuilder
  • Add a bool indicating whether or not to return hidden facets

    Declaration

    Swift

    public func setShowHiddenFacets(_ showHiddenFacets: Bool) -> CIOBrowseFacetsQueryBuilder
  • Add a offset of results to return

    Declaration

    Swift

    public func setOffset(_ offset: Int) -> CIOBrowseFacetsQueryBuilder
  • Build the request object set all of the provided data

    Usage Example:

    let query = CIOBrowseFacetsQueryBuilder()
       .setPage(2)
       .setPerPage(40)
       .setShowHiddenFacets(true)
       .build()
    
    constructor.browseFacets(forQuery: query, completionHandler: { ... })
    

    Declaration

    Swift

    public func build() -> CIOBrowseFacetsQuery