Contents

init(itemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:reservedSeat:trainTrip:)

Creates a new train reservation with the specified contents and attributes.

Declaration

convenience init(itemReference: INSpeakableString, reservationNumber: String?, bookingTime: Date?, reservationStatus: INReservationStatus, reservationHolderName: String?, actions: [INReservationAction]?, reservedSeat: INSeat?, trainTrip: INTrainTrip)

Parameters

  • itemReference:

    A unique identifier for the reservation.

  • reservationNumber:

    The reservation or booking number for the reservation.

  • bookingTime:

    The date and time the user made the reservation.

  • reservationStatus:

    The current status of the reservation.

  • reservationHolderName:

    The reservation holder’s name.

  • actions:

    The available actions associated with the reservation.

  • reservedSeat:

    The seat assigned to the passenger.

  • trainTrip:

    The information that describes the train trip.

Return Value

A new INTrainReservation object or nil if one can’t be created.

See Also

Creating a Train Reservation