use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[deprecated = "INSetSeatSettingsInCarIntentResponseCode is deprecated. There is no replacement."]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct INSetSeatSettingsInCarIntentResponseCode(pub NSInteger);
impl INSetSeatSettingsInCarIntentResponseCode {
#[doc(alias = "INSetSeatSettingsInCarIntentResponseCodeUnspecified")]
#[deprecated = "INSetSeatSettingsInCarIntentResponseCode is deprecated. There is no replacement."]
pub const Unspecified: Self = Self(0);
#[doc(alias = "INSetSeatSettingsInCarIntentResponseCodeReady")]
#[deprecated = "INSetSeatSettingsInCarIntentResponseCode is deprecated. There is no replacement."]
pub const Ready: Self = Self(1);
#[doc(alias = "INSetSeatSettingsInCarIntentResponseCodeInProgress")]
#[deprecated = "INSetSeatSettingsInCarIntentResponseCode is deprecated. There is no replacement."]
pub const InProgress: Self = Self(2);
#[doc(alias = "INSetSeatSettingsInCarIntentResponseCodeSuccess")]
#[deprecated = "INSetSeatSettingsInCarIntentResponseCode is deprecated. There is no replacement."]
pub const Success: Self = Self(3);
#[doc(alias = "INSetSeatSettingsInCarIntentResponseCodeFailure")]
#[deprecated = "INSetSeatSettingsInCarIntentResponseCode is deprecated. There is no replacement."]
pub const Failure: Self = Self(4);
#[doc(alias = "INSetSeatSettingsInCarIntentResponseCodeFailureRequiringAppLaunch")]
#[deprecated = "INSetSeatSettingsInCarIntentResponseCode is deprecated. There is no replacement."]
pub const FailureRequiringAppLaunch: Self = Self(5);
}
unsafe impl Encode for INSetSeatSettingsInCarIntentResponseCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for INSetSeatSettingsInCarIntentResponseCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(INIntentResponse, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntentResponse")]
#[deprecated = "INSetSeatSettingsInCarIntentResponse is deprecated. There is no replacement."]
pub struct INSetSeatSettingsInCarIntentResponse;
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCoding for INSetSeatSettingsInCarIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCopying for INSetSeatSettingsInCarIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
unsafe impl CopyingHelper for INSetSeatSettingsInCarIntentResponse {
type Result = Self;
}
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSetSeatSettingsInCarIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSSecureCoding for INSetSeatSettingsInCarIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
impl INSetSeatSettingsInCarIntentResponse {
extern_methods!(
#[deprecated = "INSetSeatSettingsInCarIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[deprecated = "INSetSeatSettingsInCarIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(initWithCode:userActivity:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCode_userActivity(
this: Allocated<Self>,
code: INSetSeatSettingsInCarIntentResponseCode,
user_activity: Option<&NSUserActivity>,
) -> Retained<Self>;
#[deprecated = "INSetSeatSettingsInCarIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(code))]
#[unsafe(method_family = none)]
pub unsafe fn code(&self) -> INSetSeatSettingsInCarIntentResponseCode;
);
}
#[cfg(feature = "INIntentResponse")]
impl INSetSeatSettingsInCarIntentResponse {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}