1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
/// A base class that represents a message in a conversation.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uiconversationentry?language=objc)
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIConversationEntry;
);
extern_conformance!(
unsafe impl NSObjectProtocol for UIConversationEntry {}
);
impl UIConversationEntry {
extern_methods!(
/// A string that contains the message’s text.
#[unsafe(method(text))]
#[unsafe(method_family = none)]
pub fn text(&self) -> Retained<NSString>;
/// Setter for [`text`][Self::text].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[unsafe(method(setText:))]
#[unsafe(method_family = none)]
pub fn setText(&self, text: &NSString);
/// A string that identifies the message’s sender.
#[unsafe(method(senderIdentifier))]
#[unsafe(method_family = none)]
pub fn senderIdentifier(&self) -> Retained<NSString>;
/// Setter for [`senderIdentifier`][Self::senderIdentifier].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[unsafe(method(setSenderIdentifier:))]
#[unsafe(method_family = none)]
pub fn setSenderIdentifier(&self, sender_identifier: &NSString);
/// A date that notes when the sender added the message to the conversation.
#[unsafe(method(sentDate))]
#[unsafe(method_family = none)]
pub fn sentDate(&self) -> Retained<NSDate>;
/// Setter for [`sentDate`][Self::sentDate].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[unsafe(method(setSentDate:))]
#[unsafe(method_family = none)]
pub fn setSentDate(&self, sent_date: &NSDate);
/// A string that uniquely identifies this specific entry in the conversation.
#[unsafe(method(entryIdentifier))]
#[unsafe(method_family = none)]
pub fn entryIdentifier(&self) -> Retained<NSString>;
/// Setter for [`entryIdentifier`][Self::entryIdentifier].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[unsafe(method(setEntryIdentifier:))]
#[unsafe(method_family = none)]
pub fn setEntryIdentifier(&self, entry_identifier: &NSString);
/// An optional string that identifies another message in a conversation, when this entry is a reply to that message.
///
/// When an entry is a reply to another conversation entry, this contains the identifier of the conversation entry that the person replied to.
#[unsafe(method(replyThreadIdentifier))]
#[unsafe(method_family = none)]
pub fn replyThreadIdentifier(&self) -> Option<Retained<NSString>>;
/// Setter for [`replyThreadIdentifier`][Self::replyThreadIdentifier].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[unsafe(method(setReplyThreadIdentifier:))]
#[unsafe(method_family = none)]
pub fn setReplyThreadIdentifier(&self, reply_thread_identifier: Option<&NSString>);
/// A set of strings that identifies the primary recipients of the message.
#[unsafe(method(primaryRecipientIdentifiers))]
#[unsafe(method_family = none)]
pub fn primaryRecipientIdentifiers(&self) -> Retained<NSSet<NSString>>;
/// Setter for [`primaryRecipientIdentifiers`][Self::primaryRecipientIdentifiers].
///
/// This is [copied][objc2_foundation::NSCopying::copy] when set.
#[unsafe(method(setPrimaryRecipientIdentifiers:))]
#[unsafe(method_family = none)]
pub fn setPrimaryRecipientIdentifiers(
&self,
primary_recipient_identifiers: &NSSet<NSString>,
);
);
}
/// Methods declared on superclass `NSObject`.
impl UIConversationEntry {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new() -> Retained<Self>;
);
}
impl DefaultRetained for UIConversationEntry {
#[inline]
fn default_retained() -> Retained<Self> {
Self::new()
}
}