init(airline:flightNumber:boardingTime:flightDuration:departureAirportGate:arrivalAirportGate:)
Creates a new object containing information about a flight.
Declaration
init(airline: INAirline, flightNumber: String, boardingTime: INDateComponentsRange?, flightDuration: INDateComponentsRange, departureAirportGate: INAirportGate, arrivalAirportGate: INAirportGate)Parameters
- airline:
The airline on which the user is flying.
- flightNumber:
The number of the flight. Flight numbers are specific to each airline.
- boardingTime:
The date and time during which the flight boards.
- flightDuration:
The date and time range for the departure and arrival times for the flight.
- departureAirportGate:
The gate from which the flight departs.
- arrivalAirportGate:
The gate at which the flight arrives.
Return Value
A new INFlight object or nil if one can’t be created.