init(itemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:reservedSeat:flight:)
Creates a new flight reservation with the specified contents and attributes.
Declaration
convenience init(itemReference: INSpeakableString, reservationNumber: String?, bookingTime: Date?, reservationStatus: INReservationStatus, reservationHolderName: String?, actions: [INReservationAction]?, reservedSeat: INSeat?, flight: INFlight)Parameters
- itemReference:
A unique value for the reservation item.
- reservationNumber:
The reservation or booking number provided by the app.
- bookingTime:
The date and time the user made the reservation.
- reservationStatus:
The current reservation status.
- reservationHolderName:
The name of the person the reservation is under.
- actions:
The available actions for the reservation. For example, checking in for the reservation from your phone.
- reservedSeat:
The seat assigned to the user for the flight.
- flight:
The flight information for the reservation.
Return Value
A new INRestaurantReservation object or nil if unable to create one.