Class

INBookRestaurantReservationIntentResponse

Your app’s response to a book restaurant reservation intent.

Overview

An INBookRestaurantReservationIntentResponse object contains final reservation booking information. You create an instance of this class when confirming or handling an INBookRestaurantReservationIntent object, which contains the details of the reservation that you need to book.

You create an INBookRestaurantReservationIntentResponse object in the confirm(bookRestaurantReservation:completion:) and handle(bookRestaurantReservation:completion:) methods of your handler object. For more information about implementing your handler object, see INBookRestaurantReservationIntentHandling.

Topics

Initializing the Response Object

init(code: INBookRestaurantReservationIntentCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Accessing the Response Information

var code: INBookRestaurantReservationIntentCode

The code indicating whether you successfully handled the intent.

var userBooking: INRestaurantReservationUserBooking?

The detailed information about the reservation.

Constants

enum INBookRestaurantReservationIntentCode

Constants indicating the state of the response.

Relationships

Inherits From

Conforms To

See Also

Book Restaurant Reservation

protocol INBookRestaurantReservationIntentHandling

The handler interface booking a reservation that the user selected.

class INBookRestaurantReservationIntent

A request to create a reservation at the specified restaurant.