objc2_intents/generated/
INSetRadioStationIntentResponse.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// [Apple's documentation](https://developer.apple.com/documentation/intents/insetradiostationintentresponsecode?language=objc)
10// NS_ENUM
11#[deprecated = "INSetRadioStationIntentResponseCode is deprecated. There is no replacement."]
12#[repr(transparent)]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
14pub struct INSetRadioStationIntentResponseCode(pub NSInteger);
15impl INSetRadioStationIntentResponseCode {
16    #[doc(alias = "INSetRadioStationIntentResponseCodeUnspecified")]
17    #[deprecated = "INSetRadioStationIntentResponseCode is deprecated. There is no replacement."]
18    pub const Unspecified: Self = Self(0);
19    #[doc(alias = "INSetRadioStationIntentResponseCodeReady")]
20    #[deprecated = "INSetRadioStationIntentResponseCode is deprecated. There is no replacement."]
21    pub const Ready: Self = Self(1);
22    #[doc(alias = "INSetRadioStationIntentResponseCodeInProgress")]
23    #[deprecated = "INSetRadioStationIntentResponseCode is deprecated. There is no replacement."]
24    pub const InProgress: Self = Self(2);
25    #[doc(alias = "INSetRadioStationIntentResponseCodeSuccess")]
26    #[deprecated = "INSetRadioStationIntentResponseCode is deprecated. There is no replacement."]
27    pub const Success: Self = Self(3);
28    #[doc(alias = "INSetRadioStationIntentResponseCodeFailure")]
29    #[deprecated = "INSetRadioStationIntentResponseCode is deprecated. There is no replacement."]
30    pub const Failure: Self = Self(4);
31    #[doc(alias = "INSetRadioStationIntentResponseCodeFailureRequiringAppLaunch")]
32    #[deprecated = "INSetRadioStationIntentResponseCode is deprecated. There is no replacement."]
33    pub const FailureRequiringAppLaunch: Self = Self(5);
34    #[doc(alias = "INSetRadioStationIntentResponseCodeFailureNotSubscribed")]
35    #[deprecated = "INSetRadioStationIntentResponseCode is deprecated. There is no replacement."]
36    pub const FailureNotSubscribed: Self = Self(6);
37}
38
39unsafe impl Encode for INSetRadioStationIntentResponseCode {
40    const ENCODING: Encoding = NSInteger::ENCODING;
41}
42
43unsafe impl RefEncode for INSetRadioStationIntentResponseCode {
44    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
45}
46
47extern_class!(
48    /// [Apple's documentation](https://developer.apple.com/documentation/intents/insetradiostationintentresponse?language=objc)
49    #[unsafe(super(INIntentResponse, NSObject))]
50    #[derive(Debug, PartialEq, Eq, Hash)]
51    #[cfg(feature = "INIntentResponse")]
52    #[deprecated = "INSetRadioStationIntentResponse is deprecated. There is no replacement."]
53    pub struct INSetRadioStationIntentResponse;
54);
55
56#[cfg(feature = "INIntentResponse")]
57extern_conformance!(
58    unsafe impl NSCoding for INSetRadioStationIntentResponse {}
59);
60
61#[cfg(feature = "INIntentResponse")]
62extern_conformance!(
63    unsafe impl NSCopying for INSetRadioStationIntentResponse {}
64);
65
66#[cfg(feature = "INIntentResponse")]
67unsafe impl CopyingHelper for INSetRadioStationIntentResponse {
68    type Result = Self;
69}
70
71#[cfg(feature = "INIntentResponse")]
72extern_conformance!(
73    unsafe impl NSObjectProtocol for INSetRadioStationIntentResponse {}
74);
75
76#[cfg(feature = "INIntentResponse")]
77extern_conformance!(
78    unsafe impl NSSecureCoding for INSetRadioStationIntentResponse {}
79);
80
81#[cfg(feature = "INIntentResponse")]
82impl INSetRadioStationIntentResponse {
83    extern_methods!(
84        #[deprecated = "INSetRadioStationIntentResponse is deprecated. There is no replacement."]
85        #[unsafe(method(init))]
86        #[unsafe(method_family = init)]
87        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
88
89        #[deprecated = "INSetRadioStationIntentResponse is deprecated. There is no replacement."]
90        #[unsafe(method(initWithCode:userActivity:))]
91        #[unsafe(method_family = init)]
92        pub unsafe fn initWithCode_userActivity(
93            this: Allocated<Self>,
94            code: INSetRadioStationIntentResponseCode,
95            user_activity: Option<&NSUserActivity>,
96        ) -> Retained<Self>;
97
98        #[deprecated = "INSetRadioStationIntentResponse is deprecated. There is no replacement."]
99        #[unsafe(method(code))]
100        #[unsafe(method_family = none)]
101        pub unsafe fn code(&self) -> INSetRadioStationIntentResponseCode;
102    );
103}
104
105/// Methods declared on superclass `NSObject`.
106#[cfg(feature = "INIntentResponse")]
107impl INSetRadioStationIntentResponse {
108    extern_methods!(
109        #[unsafe(method(new))]
110        #[unsafe(method_family = new)]
111        pub unsafe fn new() -> Retained<Self>;
112    );
113}