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


class INGetAvailableRestaurantReservationBookingDefaultsIntentResponse : INIntentResponse


An INGetAvailableRestaurantReservationBookingDefaultsIntentResponse object contains the default values to use when booking a reservation at a restaurant. You create instances of this class when confirming or handling an INGetAvailableRestaurantReservationBookingDefaultsIntent object.

The system uses the information to improve the overall user experience. Restaurants may have requirements for the minimum or maximum size of a party. Similarly, your service might be able to provide a default date that reflects the first time when reservations are available. The system uses this information both to gather an initial set of valid reservation options and to show the user what requirements the restaurant may impose. Although providing default values is not required, it is highly recommended.

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


Initializing the Response Object

Getting the Response Code

var code: INGetAvailableRestaurantReservationBookingDefaultsIntentResponseCode

The code indicating whether you successfully handled the intent.

Specifying the Default Values

var defaultBookingDate: Date

The default booking date to use when placing the initial reservations request.

var defaultPartySize: Int

The party size to use when placing the initial reservations request.

var maximumPartySize: NSNumber?

The maximum party size allowed by the restaurant.

var minimumPartySize: NSNumber?

The minimum party size allowed by the restaurant.

var providerImage: INImage

An image representing your app.


Inherits From

Conforms To

See Also

Get Available Restaurant Reservation Booking Defaults

protocol INGetAvailableRestaurantReservationBookingDefaultsIntentHandling

The handler interface for providing default values to the system when pre-fetching an initial set of possible reservation times.

class INGetAvailableRestaurantReservationBookingDefaultsIntent

A request for the default values to use when fetching potential reservation options.