objc2_intents/generated/
INTicketedEventReservation.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inticketedeventreservation?language=objc)
11    #[unsafe(super(INReservation, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(feature = "INReservation")]
14    pub struct INTicketedEventReservation;
15);
16
17#[cfg(feature = "INReservation")]
18extern_conformance!(
19    unsafe impl NSCoding for INTicketedEventReservation {}
20);
21
22#[cfg(feature = "INReservation")]
23extern_conformance!(
24    unsafe impl NSCopying for INTicketedEventReservation {}
25);
26
27#[cfg(feature = "INReservation")]
28unsafe impl CopyingHelper for INTicketedEventReservation {
29    type Result = Self;
30}
31
32#[cfg(feature = "INReservation")]
33extern_conformance!(
34    unsafe impl NSObjectProtocol for INTicketedEventReservation {}
35);
36
37#[cfg(feature = "INReservation")]
38extern_conformance!(
39    unsafe impl NSSecureCoding for INTicketedEventReservation {}
40);
41
42#[cfg(feature = "INReservation")]
43impl INTicketedEventReservation {
44    extern_methods!(
45        #[cfg(all(
46            feature = "INReservationAction",
47            feature = "INReservationStatus",
48            feature = "INSeat",
49            feature = "INSpeakableString",
50            feature = "INTicketedEvent"
51        ))]
52        #[unsafe(method(initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:URL:reservedSeat:event:))]
53        #[unsafe(method_family = init)]
54        pub unsafe fn initWithItemReference_reservationNumber_bookingTime_reservationStatus_reservationHolderName_actions_URL_reservedSeat_event(
55            this: Allocated<Self>,
56            item_reference: &INSpeakableString,
57            reservation_number: Option<&NSString>,
58            booking_time: Option<&NSDate>,
59            reservation_status: INReservationStatus,
60            reservation_holder_name: Option<&NSString>,
61            actions: Option<&NSArray<INReservationAction>>,
62            url: Option<&NSURL>,
63            reserved_seat: Option<&INSeat>,
64            event: &INTicketedEvent,
65        ) -> Retained<Self>;
66
67        #[cfg(all(
68            feature = "INReservationAction",
69            feature = "INReservationStatus",
70            feature = "INSeat",
71            feature = "INSpeakableString",
72            feature = "INTicketedEvent"
73        ))]
74        #[unsafe(method(initWithItemReference:reservationNumber:bookingTime:reservationStatus:reservationHolderName:actions:reservedSeat:event:))]
75        #[unsafe(method_family = init)]
76        pub unsafe fn initWithItemReference_reservationNumber_bookingTime_reservationStatus_reservationHolderName_actions_reservedSeat_event(
77            this: Allocated<Self>,
78            item_reference: &INSpeakableString,
79            reservation_number: Option<&NSString>,
80            booking_time: Option<&NSDate>,
81            reservation_status: INReservationStatus,
82            reservation_holder_name: Option<&NSString>,
83            actions: Option<&NSArray<INReservationAction>>,
84            reserved_seat: Option<&INSeat>,
85            event: &INTicketedEvent,
86        ) -> Retained<Self>;
87
88        #[cfg(feature = "INTicketedEvent")]
89        #[unsafe(method(event))]
90        #[unsafe(method_family = none)]
91        pub unsafe fn event(&self) -> Retained<INTicketedEvent>;
92
93        #[cfg(feature = "INSeat")]
94        #[unsafe(method(reservedSeat))]
95        #[unsafe(method_family = none)]
96        pub unsafe fn reservedSeat(&self) -> Option<Retained<INSeat>>;
97    );
98}
99
100/// Methods declared on superclass `INReservation`.
101#[cfg(feature = "INReservation")]
102impl INTicketedEventReservation {
103    extern_methods!(
104        #[unsafe(method(init))]
105        #[unsafe(method_family = init)]
106        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
107    );
108}
109
110/// Methods declared on superclass `NSObject`.
111#[cfg(feature = "INReservation")]
112impl INTicketedEventReservation {
113    extern_methods!(
114        #[unsafe(method(new))]
115        #[unsafe(method_family = new)]
116        pub unsafe fn new() -> Retained<Self>;
117    );
118}