SearchContext

public struct SearchContext : Encodable
extension SearchContext: Equatable

Structure describing the context of a search

  • Pick-up location and date for the search

    Declaration

    Swift

    public var pickUp: SearchPickUp
  • Drop-off location and date for the search

    Declaration

    Swift

    public var dropOff: SearchDropOff?
  • Optional flight designator information

    Declaration

    Swift

    public var flightDesignator: FlightDesignator?
  • Optional driver age

    Declaration

    Swift

    public var driverAge: Int?
  • Optional passenger count for the relevant age group

    Declaration

    Swift

    public var passengerCounts: PassengerCounts?
  • Optional preferences for country-of-residence, language and currency

    Declaration

    Swift

    public var localePreferences: LocalePreferences
  • Initializes the SearchContext with a block-based builder

    Declaration

    Swift

    public init?(block: ((SearchContextBuilder) -> Void))

    Parameters

    block

    Closure block that sets variables on the SearchContextBuilder instance it is passed in

  • Test whether two search contexts are equivalent Parameters: - lhs: The first search context to compare - rhs: The second search context to compare

    Declaration

    Swift

    public static func == (lhs: SearchContext, rhs: SearchContext) -> Bool