Contents

init(restaurant:booking:partySize:bookingIdentifier:)

Initializes the reservation object with the specified information and status.

Declaration

init(restaurant: INRestaurant, booking bookingDate: Date, partySize: Int, bookingIdentifier: String)

Parameters

  • restaurant:

    The restaurant at which the reservation is to be 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.

Return Value

An initialized reservation booking object or nil if the object could not be created.

Discussion

After initializing the reservation booking object, update the other properties of the object with details about special offers or the requirements for completing the reservation.