Class

INGetAvailableRestaurantReservationBookingDefaultsIntentResponse

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

Declaration

@interface INGetAvailableRestaurantReservationBookingDefaultsIntentResponse : INIntentResponse

Overview

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 confirmGetAvailableRestaurantReservationBookingDefaults:completion: and handleGetAvailableRestaurantReservationBookingDefaults:completion: methods of handler object. For more information about implementing your handler object, see INGetAvailableRestaurantReservationBookingDefaultsIntentHandling.

Topics

Initializing the Response Object

- initWithDefaultPartySize:defaultBookingDate:code:userActivity:

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

Getting the Response Code

code

The code indicating whether you successfully handled the intent.

INGetAvailableRestaurantReservationBookingDefaultsIntentResponseCode

Constants indicating the state of the response.

Specifying the Default Values

defaultBookingDate

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

defaultPartySize

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

maximumPartySize

The maximum party size allowed by the restaurant.

minimumPartySize

The minimum party size allowed by the restaurant.

providerImage

An image representing your app.

Relationships

Inherits From

See Also

Get Available Restaurant Reservation Booking Defaults

INGetAvailableRestaurantReservationBookingDefaultsIntentHandling

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

INGetAvailableRestaurantReservationBookingDefaultsIntent

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