use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct INGetVisualCodeIntentResponseCode(pub NSInteger);
impl INGetVisualCodeIntentResponseCode {
#[doc(alias = "INGetVisualCodeIntentResponseCodeUnspecified")]
#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
pub const Unspecified: Self = Self(0);
#[doc(alias = "INGetVisualCodeIntentResponseCodeReady")]
#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
pub const Ready: Self = Self(1);
#[doc(alias = "INGetVisualCodeIntentResponseCodeContinueInApp")]
#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
pub const ContinueInApp: Self = Self(2);
#[doc(alias = "INGetVisualCodeIntentResponseCodeInProgress")]
#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
pub const InProgress: Self = Self(3);
#[doc(alias = "INGetVisualCodeIntentResponseCodeSuccess")]
#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
pub const Success: Self = Self(4);
#[doc(alias = "INGetVisualCodeIntentResponseCodeFailure")]
#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
pub const Failure: Self = Self(5);
#[doc(alias = "INGetVisualCodeIntentResponseCodeFailureRequiringAppLaunch")]
#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
pub const FailureRequiringAppLaunch: Self = Self(6);
#[doc(alias = "INGetVisualCodeIntentResponseCodeFailureAppConfigurationRequired")]
#[deprecated = "INGetVisualCodeIntentResponseCode is deprecated. There is no replacement."]
pub const FailureAppConfigurationRequired: Self = Self(7);
}
unsafe impl Encode for INGetVisualCodeIntentResponseCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for INGetVisualCodeIntentResponseCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(INIntentResponse, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntentResponse")]
#[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
pub struct INGetVisualCodeIntentResponse;
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCoding for INGetVisualCodeIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCopying for INGetVisualCodeIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
unsafe impl CopyingHelper for INGetVisualCodeIntentResponse {
type Result = Self;
}
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSObjectProtocol for INGetVisualCodeIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSSecureCoding for INGetVisualCodeIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
impl INGetVisualCodeIntentResponse {
extern_methods!(
#[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(initWithCode:userActivity:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCode_userActivity(
this: Allocated<Self>,
code: INGetVisualCodeIntentResponseCode,
user_activity: Option<&NSUserActivity>,
) -> Retained<Self>;
#[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(code))]
#[unsafe(method_family = none)]
pub unsafe fn code(&self) -> INGetVisualCodeIntentResponseCode;
#[cfg(feature = "INImage")]
#[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(visualCodeImage))]
#[unsafe(method_family = none)]
pub unsafe fn visualCodeImage(&self) -> Option<Retained<INImage>>;
#[cfg(feature = "INImage")]
#[deprecated = "INGetVisualCodeIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setVisualCodeImage:))]
#[unsafe(method_family = none)]
pub unsafe fn setVisualCodeImage(&self, visual_code_image: Option<&INImage>);
);
}
#[cfg(feature = "INIntentResponse")]
impl INGetVisualCodeIntentResponse {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}