handle(getAvailableRestaurantReservationBookingDefaults:completion:)
Handles returning the default values to use when pre-fetching reservations.
Declaration
func handle(getAvailableRestaurantReservationBookingDefaults intent: INGetAvailableRestaurantReservationBookingDefaultsIntent, completion: @escaping @Sendable (INGetAvailableRestaurantReservationBookingDefaultsIntentResponse) -> Void)func handle(getAvailableRestaurantReservationBookingDefaults intent: INGetAvailableRestaurantReservationBookingDefaultsIntent) async -> INGetAvailableRestaurantReservationBookingDefaultsIntentResponseParameters
- intent:
The intent object containing details about the request. The information in this object has already been resolved and confirmed.
- completion:
The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:
- response
The Ingetavailablerestaurantreservationbookingdefaultsintentresponse object you create to report the status of the request. This parameter must not be
nil.
Discussion
Your implementation of this method should construct a response object containing the default values to use. Use the information in the intent parameter to fetch any restaurant-specific information. When done, execute the provided block with your response object.