objc2_intents/generated/
INCallRecord.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct INCallRecord;
14);
15
16extern_conformance!(
17 unsafe impl NSCoding for INCallRecord {}
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for INCallRecord {}
22);
23
24unsafe impl CopyingHelper for INCallRecord {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for INCallRecord {}
30);
31
32extern_conformance!(
33 unsafe impl NSSecureCoding for INCallRecord {}
34);
35
36impl INCallRecord {
37 extern_methods!(
38 #[unsafe(method(init))]
39 #[unsafe(method_family = init)]
40 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
41
42 #[cfg(all(
43 feature = "INCallCapability",
44 feature = "INCallRecordType",
45 feature = "INPerson"
46 ))]
47 #[unsafe(method(initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:participants:numberOfCalls:isCallerIdBlocked:))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn initWithIdentifier_dateCreated_callRecordType_callCapability_callDuration_unseen_participants_numberOfCalls_isCallerIdBlocked(
50 this: Allocated<Self>,
51 identifier: &NSString,
52 date_created: Option<&NSDate>,
53 call_record_type: INCallRecordType,
54 call_capability: INCallCapability,
55 call_duration: Option<&NSNumber>,
56 unseen: Option<&NSNumber>,
57 participants: Option<&NSArray<INPerson>>,
58 number_of_calls: Option<&NSNumber>,
59 is_caller_id_blocked: Option<&NSNumber>,
60 ) -> Retained<Self>;
61
62 #[cfg(all(feature = "INCallCapability", feature = "INCallRecordType"))]
63 #[unsafe(method(initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:))]
64 #[unsafe(method_family = init)]
65 pub unsafe fn initWithIdentifier_dateCreated_callRecordType_callCapability_callDuration_unseen(
66 this: Allocated<Self>,
67 identifier: &NSString,
68 date_created: Option<&NSDate>,
69 call_record_type: INCallRecordType,
70 call_capability: INCallCapability,
71 call_duration: Option<&NSNumber>,
72 unseen: Option<&NSNumber>,
73 ) -> Retained<Self>;
74
75 #[cfg(all(feature = "INCallCapability", feature = "INCallRecordType"))]
76 #[unsafe(method(initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:numberOfCalls:))]
77 #[unsafe(method_family = init)]
78 pub unsafe fn initWithIdentifier_dateCreated_callRecordType_callCapability_callDuration_unseen_numberOfCalls(
79 this: Allocated<Self>,
80 identifier: &NSString,
81 date_created: Option<&NSDate>,
82 call_record_type: INCallRecordType,
83 call_capability: INCallCapability,
84 call_duration: Option<&NSNumber>,
85 unseen: Option<&NSNumber>,
86 number_of_calls: Option<&NSNumber>,
87 ) -> Retained<Self>;
88
89 #[unsafe(method(identifier))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn identifier(&self) -> Retained<NSString>;
92
93 #[unsafe(method(dateCreated))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn dateCreated(&self) -> Option<Retained<NSDate>>;
96
97 #[cfg(feature = "INCallRecordType")]
98 #[unsafe(method(callRecordType))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn callRecordType(&self) -> INCallRecordType;
101
102 #[unsafe(method(callDuration))]
103 #[unsafe(method_family = none)]
104 pub unsafe fn callDuration(&self) -> Option<Retained<NSNumber>>;
105
106 #[unsafe(method(unseen))]
107 #[unsafe(method_family = none)]
108 pub unsafe fn unseen(&self) -> Option<Retained<NSNumber>>;
109
110 #[cfg(feature = "INCallCapability")]
111 #[unsafe(method(callCapability))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn callCapability(&self) -> INCallCapability;
114
115 #[unsafe(method(numberOfCalls))]
116 #[unsafe(method_family = none)]
117 pub unsafe fn numberOfCalls(&self) -> Option<Retained<NSNumber>>;
118
119 #[unsafe(method(isCallerIdBlocked))]
120 #[unsafe(method_family = none)]
121 pub unsafe fn isCallerIdBlocked(&self) -> Option<Retained<NSNumber>>;
122
123 #[cfg(feature = "INPerson")]
124 #[unsafe(method(participants))]
125 #[unsafe(method_family = none)]
126 pub unsafe fn participants(&self) -> Option<Retained<NSArray<INPerson>>>;
127 );
128}
129
130impl INCallRecord {
132 extern_methods!(
133 #[unsafe(method(new))]
134 #[unsafe(method_family = new)]
135 pub unsafe fn new() -> Retained<Self>;
136 );
137}