use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static MSStickersErrorDomain: Option<&'static NSString>;
}
extern "C" {
pub static MSMessagesErrorDomain: Option<&'static NSString>;
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct MSMessageErrorCode(pub NSInteger);
impl MSMessageErrorCode {
#[doc(alias = "MSMessageErrorCodeUnknown")]
pub const Unknown: Self = Self(-1);
#[doc(alias = "MSMessageErrorCodeFileNotFound")]
pub const FileNotFound: Self = Self(1);
#[doc(alias = "MSMessageErrorCodeFileUnreadable")]
pub const FileUnreadable: Self = Self(2);
#[doc(alias = "MSMessageErrorCodeImproperFileType")]
pub const ImproperFileType: Self = Self(3);
#[doc(alias = "MSMessageErrorCodeImproperFileURL")]
pub const ImproperFileURL: Self = Self(4);
#[doc(alias = "MSMessageErrorCodeStickerFileImproperFileAttributes")]
pub const StickerFileImproperFileAttributes: Self = Self(5);
#[doc(alias = "MSMessageErrorCodeStickerFileImproperFileSize")]
pub const StickerFileImproperFileSize: Self = Self(6);
#[doc(alias = "MSMessageErrorCodeStickerFileImproperFileFormat")]
pub const StickerFileImproperFileFormat: Self = Self(7);
#[doc(alias = "MSMessageErrorCodeURLExceedsMaxSize")]
pub const URLExceedsMaxSize: Self = Self(8);
#[doc(alias = "MSMessageErrorCodeSendWithoutRecentInteraction")]
pub const SendWithoutRecentInteraction: Self = Self(9);
#[doc(alias = "MSMessageErrorCodeSendWhileNotVisible")]
pub const SendWhileNotVisible: Self = Self(10);
#[doc(alias = "MSMessageErrorCodeAPIUnavailableInPresentationContext")]
pub const APIUnavailableInPresentationContext: Self = Self(11);
}
unsafe impl Encode for MSMessageErrorCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for MSMessageErrorCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}