objc2_identity_lookup/generated/
ILMessageFilterQueryRequest.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    /// A request to query a MessageFilter extension about how to interpret a received message.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/identitylookup/ilmessagefilterqueryrequest?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct ILMessageFilterQueryRequest;
16);
17
18extern_conformance!(
19    unsafe impl NSCoding for ILMessageFilterQueryRequest {}
20);
21
22extern_conformance!(
23    unsafe impl NSObjectProtocol for ILMessageFilterQueryRequest {}
24);
25
26extern_conformance!(
27    unsafe impl NSSecureCoding for ILMessageFilterQueryRequest {}
28);
29
30impl ILMessageFilterQueryRequest {
31    extern_methods!(
32        /// The sender of the message the receiver relates to.
33        #[unsafe(method(sender))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn sender(&self) -> Option<Retained<NSString>>;
36
37        /// The body of the message the receiver relates to.
38        #[unsafe(method(messageBody))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn messageBody(&self) -> Option<Retained<NSString>>;
41
42        /// The ISO Country Code of the receiving phone number, in format specified by the ISO 3166-2 standard
43        #[unsafe(method(receiverISOCountryCode))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn receiverISOCountryCode(&self) -> Option<Retained<NSString>>;
46
47        #[unsafe(method(init))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub unsafe fn new() -> Retained<Self>;
54    );
55}