objc2_intents/generated/
INGetUserCurrentRestaurantReservationBookingsIntentResponse.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[repr(transparent)]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
14pub struct INGetUserCurrentRestaurantReservationBookingsIntentResponseCode(pub NSInteger);
15impl INGetUserCurrentRestaurantReservationBookingsIntentResponseCode {
16 #[doc(alias = "INGetUserCurrentRestaurantReservationBookingsIntentResponseCodeSuccess")]
17 pub const Success: Self = Self(0);
18 #[doc(alias = "INGetUserCurrentRestaurantReservationBookingsIntentResponseCodeFailure")]
19 pub const Failure: Self = Self(1);
20 #[doc(
21 alias = "INGetUserCurrentRestaurantReservationBookingsIntentResponseCodeFailureRequestUnsatisfiable"
22 )]
23 pub const FailureRequestUnsatisfiable: Self = Self(2);
24 #[doc(alias = "INGetUserCurrentRestaurantReservationBookingsIntentResponseCodeUnspecified")]
25 pub const Unspecified: Self = Self(3);
26}
27
28unsafe impl Encode for INGetUserCurrentRestaurantReservationBookingsIntentResponseCode {
29 const ENCODING: Encoding = NSInteger::ENCODING;
30}
31
32unsafe impl RefEncode for INGetUserCurrentRestaurantReservationBookingsIntentResponseCode {
33 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
34}
35
36extern_class!(
37 #[unsafe(super(INIntentResponse, NSObject))]
39 #[derive(Debug, PartialEq, Eq, Hash)]
40 #[cfg(feature = "INIntentResponse")]
41 pub struct INGetUserCurrentRestaurantReservationBookingsIntentResponse;
42);
43
44#[cfg(feature = "INIntentResponse")]
45extern_conformance!(
46 unsafe impl NSCoding for INGetUserCurrentRestaurantReservationBookingsIntentResponse {}
47);
48
49#[cfg(feature = "INIntentResponse")]
50extern_conformance!(
51 unsafe impl NSCopying for INGetUserCurrentRestaurantReservationBookingsIntentResponse {}
52);
53
54#[cfg(feature = "INIntentResponse")]
55unsafe impl CopyingHelper for INGetUserCurrentRestaurantReservationBookingsIntentResponse {
56 type Result = Self;
57}
58
59#[cfg(feature = "INIntentResponse")]
60extern_conformance!(
61 unsafe impl NSObjectProtocol for INGetUserCurrentRestaurantReservationBookingsIntentResponse {}
62);
63
64#[cfg(feature = "INIntentResponse")]
65extern_conformance!(
66 unsafe impl NSSecureCoding for INGetUserCurrentRestaurantReservationBookingsIntentResponse {}
67);
68
69#[cfg(feature = "INIntentResponse")]
70impl INGetUserCurrentRestaurantReservationBookingsIntentResponse {
71 extern_methods!(
72 #[cfg(all(
73 feature = "INRestaurantReservationBooking",
74 feature = "INRestaurantReservationUserBooking"
75 ))]
76 #[unsafe(method(initWithUserCurrentBookings:code:userActivity:))]
77 #[unsafe(method_family = init)]
78 pub unsafe fn initWithUserCurrentBookings_code_userActivity(
79 this: Allocated<Self>,
80 user_current_bookings: &NSArray<INRestaurantReservationUserBooking>,
81 code: INGetUserCurrentRestaurantReservationBookingsIntentResponseCode,
82 user_activity: Option<&NSUserActivity>,
83 ) -> Retained<Self>;
84
85 #[unsafe(method(code))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn code(
88 &self,
89 ) -> INGetUserCurrentRestaurantReservationBookingsIntentResponseCode;
90
91 #[cfg(all(
92 feature = "INRestaurantReservationBooking",
93 feature = "INRestaurantReservationUserBooking"
94 ))]
95 #[unsafe(method(userCurrentBookings))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn userCurrentBookings(
98 &self,
99 ) -> Retained<NSArray<INRestaurantReservationUserBooking>>;
100
101 #[cfg(all(
102 feature = "INRestaurantReservationBooking",
103 feature = "INRestaurantReservationUserBooking"
104 ))]
105 #[unsafe(method(setUserCurrentBookings:))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn setUserCurrentBookings(
111 &self,
112 user_current_bookings: &NSArray<INRestaurantReservationUserBooking>,
113 );
114 );
115}
116
117#[cfg(feature = "INIntentResponse")]
119impl INGetUserCurrentRestaurantReservationBookingsIntentResponse {
120 extern_methods!(
121 #[unsafe(method(init))]
122 #[unsafe(method_family = init)]
123 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
124
125 #[unsafe(method(new))]
126 #[unsafe(method_family = new)]
127 pub unsafe fn new() -> Retained<Self>;
128 );
129}