CIOBrowseGroupsQueryBuilder

public class CIOBrowseGroupsQueryBuilder

Request builder for creating an browse groups query.

  • Creata a Browse Groups request query builder

    Declaration

    Swift

    public init()
  • Specify the id of the specific group that should be included in the response

    Declaration

    Swift

    public func setGroupId(_ groupId: String) -> CIOBrowseGroupsQueryBuilder
  • Specify the maximum depth of the hierarchy that should be included in the response Defaults to 1 if unspecified

    Declaration

    Swift

    public func setMaxDepth(_ maxDepth: Int) -> CIOBrowseGroupsQueryBuilder
  • Specify the section to return results from

    Declaration

    Swift

    public func setSection(_ section: String) -> CIOBrowseGroupsQueryBuilder
  • Build the request object set all of the provided data

    Usage Example:

    let query = CIOBrowseGroupsQueryBuilder()
       .setGroupId("group_1")
       .setSection("Products")
       .setMaxDepth(5)
       .build()
    
    constructor.browseGroups(forQuery: query, completionHandler: { ... })
    

    Declaration

    Swift

    public func build() -> CIOBrowseGroupsQuery