// // INLodgingReservation.h // Intents // // Copyright (c) 2016-2020 Apple Inc. All rights reserved. // #import #import @class CLPlacemark; @class INDateComponentsRange; @class INReservation; @class INSpeakableString; NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(ios(13.0), macos(11.0), watchos(6.0)) API_UNAVAILABLE(tvos) @interface INLodgingReservation : INReservation - (instancetype)initWithItemReference:(INSpeakableString *)itemReference reservationNumber:(nullable NSString *)reservationNumber bookingTime:(nullable NSDate *)bookingTime reservationStatus:(INReservationStatus)reservationStatus reservationHolderName:(nullable NSString *)reservationHolderName actions:(nullable NSArray *)actions URL:(nullable NSURL *)URL lodgingBusinessLocation:(CLPlacemark *)lodgingBusinessLocation reservationDuration:(INDateComponentsRange *)reservationDuration numberOfAdults:(nullable NSNumber *)numberOfAdults numberOfChildren:(nullable NSNumber *)numberOfChildren NS_DESIGNATED_INITIALIZER NS_REFINED_FOR_SWIFT API_AVAILABLE(ios(14.0), watchos(7.0)); - (instancetype)initWithItemReference:(INSpeakableString *)itemReference reservationNumber:(nullable NSString *)reservationNumber bookingTime:(nullable NSDate *)bookingTime reservationStatus:(INReservationStatus)reservationStatus reservationHolderName:(nullable NSString *)reservationHolderName actions:(nullable NSArray *)actions lodgingBusinessLocation:(CLPlacemark *)lodgingBusinessLocation reservationDuration:(INDateComponentsRange *)reservationDuration numberOfAdults:(nullable NSNumber *)numberOfAdults numberOfChildren:(nullable NSNumber *)numberOfChildren NS_REFINED_FOR_SWIFT; @property (readonly, copy, NS_NONATOMIC_IOSONLY) CLPlacemark *lodgingBusinessLocation; @property (readonly, copy, NS_NONATOMIC_IOSONLY) INDateComponentsRange *reservationDuration; @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSNumber *numberOfAdults NS_REFINED_FOR_SWIFT; @property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSNumber *numberOfChildren NS_REFINED_FOR_SWIFT; @end NS_ASSUME_NONNULL_END