use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[unsafe(super(UIConversationContext, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UIConversationContext")]
pub struct UIMessageConversationContext;
);
#[cfg(feature = "UIConversationContext")]
extern_conformance!(
unsafe impl NSObjectProtocol for UIMessageConversationContext {}
);
#[cfg(feature = "UIConversationContext")]
impl UIMessageConversationContext {
extern_methods!(
#[unsafe(method(isJunk))]
#[unsafe(method_family = none)]
pub fn isJunk(&self) -> bool;
#[unsafe(method(setIsJunk:))]
#[unsafe(method_family = none)]
pub fn setIsJunk(&self, is_junk: bool);
);
}
#[cfg(feature = "UIConversationContext")]
impl UIMessageConversationContext {
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>;
);
}
#[cfg(feature = "UIConversationContext")]
impl DefaultRetained for UIMessageConversationContext {
#[inline]
fn default_retained() -> Retained<Self> {
Self::new()
}
}