init(restaurant:booking:partySize:bookingIdentifier:guest:status:dateStatusModified:)
Initializes the reservation object with the specified information and status.
Declaration
init(restaurant: INRestaurant, booking bookingDate: Date, partySize: Int, bookingIdentifier: String, guest: INRestaurantGuest, status: INRestaurantReservationUserBookingStatus, dateStatusModified: Date)Parameters
- restaurant:
The restaurant at which the reservation was made.
- bookingDate:
The date and time of the reservation.
- partySize:
The number of guests in the party.
- bookingIdentifier:
The unique identifier for the reservation in your system.
- guest:
The guest whose name is associated with the reservation.
- status:
A value indicating whether the reservation was confirmed, declined, or is still pending.
- dateStatusModified:
The date when the reservation’s status last changed.
Return Value
An initialized reservation object or nil if the object could not be created.