---
title: "init(restaurant:reservationIdentifier:maximumNumberOfResults:earliestBookingDateForResults:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/ingetusercurrentrestaurantreservationbookingsintent/init(restaurant:reservationidentifier:maximumnumberofresults:earliestbookingdateforresults:)"
---

# init(restaurant:reservationIdentifier:maximumNumberOfResults:earliestBookingDateForResults:)

Initializes the intent object with the specified reservation information.

## Declaration

```swift
init(restaurant: INRestaurant?, reservationIdentifier: String?, maximumNumberOfResults: NSNumber?, earliestBookingDateForResults: Date?)
```

## Parameters

- `restaurant`: A restaurant to use as a filter when searching for reservations.
- `reservationIdentifier`: An identifier to use when searching for the user’s reservations.
- `maximumNumberOfResults`: The maximum number of reservations to include in your response object.
- `earliestBookingDateForResults`: The earliest date to be associated with any reservations.

## Return Value

Return Value An initialized intent object or nil if the object could not be created.

## Discussion

Discussion Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when Maps asks you to provide the user’s current list of reservations. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.
