use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MEEncodedOutgoingMessage;
);
extern_conformance!(
unsafe impl NSCoding for MEEncodedOutgoingMessage {}
);
extern_conformance!(
unsafe impl NSObjectProtocol for MEEncodedOutgoingMessage {}
);
extern_conformance!(
unsafe impl NSSecureCoding for MEEncodedOutgoingMessage {}
);
impl MEEncodedOutgoingMessage {
extern_methods!(
#[unsafe(method(initWithRawData:isSigned:isEncrypted:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithRawData_isSigned_isEncrypted(
this: Allocated<Self>,
raw_data: &NSData,
is_signed: bool,
is_encrypted: bool,
) -> Retained<Self>;
#[unsafe(method(rawData))]
#[unsafe(method_family = none)]
pub unsafe fn rawData(&self) -> Retained<NSData>;
#[unsafe(method(isSigned))]
#[unsafe(method_family = none)]
pub unsafe fn isSigned(&self) -> bool;
#[unsafe(method(isEncrypted))]
#[unsafe(method_family = none)]
pub unsafe fn isEncrypted(&self) -> bool;
);
}
impl MEEncodedOutgoingMessage {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}