objc2_messages/generated/
MSSession.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 MSSession establishes a relationship between a sequence of messages within a conversation.
11    ///
12    /// Messages created with the same session are represented as a single
13    /// entry in the conversation transcript.
14    ///
15    /// See also [Apple's documentation](https://developer.apple.com/documentation/messages/mssession?language=objc)
16    #[unsafe(super(NSObject))]
17    #[derive(Debug, PartialEq, Eq, Hash)]
18    pub struct MSSession;
19);
20
21extern_conformance!(
22    unsafe impl NSCoding for MSSession {}
23);
24
25extern_conformance!(
26    unsafe impl NSObjectProtocol for MSSession {}
27);
28
29extern_conformance!(
30    unsafe impl NSSecureCoding for MSSession {}
31);
32
33impl MSSession {
34    extern_methods!();
35}
36
37/// Methods declared on superclass `NSObject`.
38impl MSSession {
39    extern_methods!(
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47    );
48}