handle(getUserCurrentRestaurantReservationBookings:completion:)
Handles fetching the user’s current reservations.
Declaration
func handle(getUserCurrentRestaurantReservationBookings intent: INGetUserCurrentRestaurantReservationBookingsIntent, completion: @escaping @Sendable (INGetUserCurrentRestaurantReservationBookingsIntentResponse) -> Void)func handle(getUserCurrentRestaurantReservationBookings intent: INGetUserCurrentRestaurantReservationBookingsIntent) async -> INGetUserCurrentRestaurantReservationBookingsIntentResponseParameters
- 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 Ingetusercurrentrestaurantreservationbookingsintentresponse object you create to report the status of the request. This parameter must not be
nil.
Discussion
Your implementation of this method should fetch the user’s current reservations, using the information in the intent parameter to filter the search results. When done, execute the provided block with a response object that contains the appropriate set of reservations.