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