Class

INGetRestaurantGuestIntentResponse

Your app’s response to a get restaurant guest intent.

Declaration

class INGetRestaurantGuestIntentResponse : INIntentResponse

Overview

An INGetRestaurantGuestIntentResponse object contains the information about the current user along with preferences about whether to associate that user with any new reservations. You create this response when handling or confirming an INGetUserCurrentRestaurantReservationBookingsIntent object. Your response should contain information about the current user and information about how to display that user’s information in the interface used to make reservations.

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

Topics

Initializing the Response Object

init(code: INGetRestaurantGuestIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INGetRestaurantGuestIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INGetRestaurantGuestIntentResponseCode

Constants indicating the state of the response.

Specifying the Response Details

var guest: INRestaurantGuest?

The identity of the person making the reservation.

var guestDisplayPreferences: INRestaurantGuestDisplayPreferences?

The options for specifying how you want guest information conveyed to the user.

Relationships

Inherits From

Conforms To

See Also

Get Restaurant Guest

protocol INGetRestaurantGuestIntentHandling

The handler interface for fetching information about the person making a reservation.

class INGetRestaurantGuestIntent

A request for information about the guest who is making reservations.