Your app’s response to a get available restaurant reservation bookings intent.


class INGetAvailableRestaurantReservationBookingsIntentResponse : INIntentResponse


An INGetAvailableRestaurantReservationBookingsIntentResponse object contains the reservation booking objects that represent the time slots available for making a reservation at the given restaurant. You create an instance of this class when confirming or handling an INGetAvailableRestaurantReservationBookingsIntent object, which contains the basic details you use to determine your response.

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


Initializing the Response Object

Specifying the Reservation Results

var availableBookings: [INRestaurantReservationBooking]

An array of available time slots for the reservation.

Specifying Additional Information

var localizedRestaurantDescriptionText: String?

A localized, user-readable string containing a description of the restaurant.

var localizedBookingAdvisementText: String?

A localized, user-readable string containing policies and information related to the reservation.

var termsAndConditions: INTermsAndConditions?

The terms and conditions of using your company’s services.

Getting the Response Code

var code: INGetAvailableRestaurantReservationBookingsIntentCode

The code indicating whether you successfully handled the intent.

enum INGetAvailableRestaurantReservationBookingsIntentCode

Constants indicating the state of the response.


Inherits From

Conforms To

See Also

Get Available Restaurant Reservation Bookings

protocol INGetAvailableRestaurantReservationBookingsIntentHandling

The handler interface for generating a list of potential reservation times from which the user can select.

class INGetAvailableRestaurantReservationBookingsIntent

A request for the time slots available for making a reservation.