ItineraryQuery

public struct ItineraryQuery

A query to fetch Itinerary items

  • Optional flights; no flights will be returned if unspecified

    Declaration

    Swift

    public let flights: [Flight]?
  • Optional date range; defaults from present date to all future itinerary items

    Declaration

    Swift

    public let dateRange: ClosedRange<Date>?
  • Initializes an ItineraryQuery

    • flightIds: Itineraries for specific flights
    • dateRange: Denotes the duration to retrieve itineraries for

    Declaration

    Swift

    public init(flights: [Flight]?, dateRange: ClosedRange<Date>? = nil)