Class

INGetAvailableRestaurantReservationBookingDefaultsIntentResponse

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

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 confirm(getAvailableRestaurantReservationBookingDefaults:completion:) and handle(getAvailableRestaurantReservationBookingDefaults:completion:) methods of handler object. For more information about implementing your handler object, see INGetAvailableRestaurantReservationBookingDefaultsIntentHandling.

Topics

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.

Constants

Relationships

Inherits From

Conforms To

See Also

Get Available Restaurant Reservation Booking Defaults

protocol INGetAvailableRestaurantReservationBookingDefaultsIntentHandling

Provides default values for the system to use when pre-fetching an initial set of possible reservation times.

class INGetAvailableRestaurantReservationBookingDefaultsIntent

Requests the default values to use when fetching potential reservation options.