CatalogQuery
public struct CatalogQuery
This type is used to accurately retrieve a Catalog
that interests the user
-
Array of
AnyProduct
s to find similar items toDeclaration
Swift
public var products: [AnyProduct]?
-
City for which items should be searched for
Declaration
Swift
public var city: String?
-
The coordinate location for which items should be filtered for
Declaration
Swift
public var location: Coordinate?
-
Initializes a
CatalogQuery
Declaration
Swift
public init(flights: [Flight]? = nil, products: [AnyProduct]? = nil, city: String? = nil, location: Coordinate? = nil)
Parameters
flights
An optional
Array<Flight>
products
An optional
AnyProduct
Return Value
CatalogQuery