use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MEMessageSecurityInformation;
unsafe impl ClassType for MEMessageSecurityInformation {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for MEMessageSecurityInformation {}
unsafe impl NSObjectProtocol for MEMessageSecurityInformation {}
unsafe impl NSSecureCoding for MEMessageSecurityInformation {}
extern_methods!(
unsafe impl MEMessageSecurityInformation {
#[cfg(feature = "MEMessageSigner")]
#[method_id(@__retain_semantics Other signers)]
pub unsafe fn signers(&self) -> Id<NSArray<MEMessageSigner>>;
#[method(isEncrypted)]
pub unsafe fn isEncrypted(&self) -> bool;
#[method_id(@__retain_semantics Other signingError)]
pub unsafe fn signingError(&self) -> Option<Id<NSError>>;
#[method_id(@__retain_semantics Other encryptionError)]
pub unsafe fn encryptionError(&self) -> Option<Id<NSError>>;
#[method(shouldBlockRemoteContent)]
pub unsafe fn shouldBlockRemoteContent(&self) -> bool;
#[method_id(@__retain_semantics Other localizedRemoteContentBlockingReason)]
pub unsafe fn localizedRemoteContentBlockingReason(&self) -> Option<Id<NSString>>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[cfg(feature = "MEMessageSigner")]
#[method_id(@__retain_semantics Init initWithSigners:isEncrypted:signingError:encryptionError:)]
pub unsafe fn initWithSigners_isEncrypted_signingError_encryptionError(
this: Allocated<Self>,
signers: &NSArray<MEMessageSigner>,
is_encrypted: bool,
signing_error: Option<&NSError>,
encryption_error: Option<&NSError>,
) -> Id<Self>;
#[cfg(feature = "MEMessageSigner")]
#[method_id(@__retain_semantics Init initWithSigners:isEncrypted:signingError:encryptionError:shouldBlockRemoteContent:localizedRemoteContentBlockingReason:)]
pub unsafe fn initWithSigners_isEncrypted_signingError_encryptionError_shouldBlockRemoteContent_localizedRemoteContentBlockingReason(
this: Allocated<Self>,
signers: &NSArray<MEMessageSigner>,
is_encrypted: bool,
signing_error: Option<&NSError>,
encryption_error: Option<&NSError>,
should_block_remote_content: bool,
localized_remote_content_blocking_reason: Option<&NSString>,
) -> Id<Self>;
}
);