Class

INGetAvailableRestaurantReservationBookingsIntentResponse

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

Overview

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.

Topics

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.

Constants

enum INGetAvailableRestaurantReservationBookingsIntentCode

Constants indicating the state of the response.

Relationships

Inherits From

Conforms To

See Also

Get Available Restaurant Reservation Bookings

protocol INGetAvailableRestaurantReservationBookingsIntentHandling

Generates a list of potential reservation times from which the user can select.

class INGetAvailableRestaurantReservationBookingsIntent

Requests the time slots available for making a reservation.