Instance Method

initWithRestaurant:bookingDate:partySize:bookingIdentifier:guest:status:dateStatusModified:

Initializes the reservation object with the specified information and status.

Declaration

- (instancetype)initWithRestaurant:(INRestaurant *)restaurant bookingDate:(NSDate *)bookingDate partySize:(NSUInteger)partySize bookingIdentifier:(NSString *)bookingIdentifier guest:(INRestaurantGuest *)guest status:(INRestaurantReservationUserBookingStatus)status dateStatusModified:(NSDate *)dateStatusModified;

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.