Contents

initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:reservationDuration:partySize:restaurantLocation:

Creates a new restaurant reservation with the provided information.

Declaration

- (instancetype) initWithItemReference:(INSpeakableString *) itemReference reservationNumber:(NSString *) reservationNumber bookingTime:(NSDate *) bookingTime reservationStatus:(INReservationStatus) reservationStatus reservationHolderName:(NSString *) reservationHolderName actions:(NSArray<INReservationAction *> *) actions reservationDuration:(INDateComponentsRange *) reservationDuration partySize:(NSNumber *) partySize restaurantLocation:(CLPlacemark *) restaurantLocation;

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 status of the reservation.

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

  • reservationDuration:

    The date and time range that defines the start and end times for the restaurant reservation.

  • partySize:

    The size of the party for the reservation.

  • restaurantLocation:

    The name and location of the restaurant.

Return Value

A new INRestaurantReservation object or nil if unable to create one.

See Also

Creating a Restaurant Reservation