Instance Method

initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:reservedSeat:trainTrip:

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

Declaration

- (instancetype)initWithItemReference:(INSpeakableString *)itemReference reservationNumber:(NSString *)reservationNumber bookingTime:(NSDate *)bookingTime reservationStatus:(INReservationStatus)reservationStatus reservationHolderName:(NSString *)reservationHolderName actions:(NSArray<INReservationAction *> *)actions reservedSeat:(INSeat *)reservedSeat trainTrip:(INTrainTrip *)trainTrip;

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 user.

trainTrip

The information that describes the train trip.

Return Value

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