objc2-intents 0.3.2

Bindings to the Intents framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/intents/ingetreservationdetailsintent?language=objc)
    #[unsafe(super(INIntent, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "INIntent")]
    pub struct INGetReservationDetailsIntent;
);

#[cfg(feature = "INIntent")]
extern_conformance!(
    unsafe impl NSCoding for INGetReservationDetailsIntent {}
);

#[cfg(feature = "INIntent")]
extern_conformance!(
    unsafe impl NSCopying for INGetReservationDetailsIntent {}
);

#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INGetReservationDetailsIntent {
    type Result = Self;
}

#[cfg(feature = "INIntent")]
extern_conformance!(
    unsafe impl NSObjectProtocol for INGetReservationDetailsIntent {}
);

#[cfg(feature = "INIntent")]
extern_conformance!(
    unsafe impl NSSecureCoding for INGetReservationDetailsIntent {}
);

#[cfg(feature = "INIntent")]
impl INGetReservationDetailsIntent {
    extern_methods!(
        #[cfg(feature = "INSpeakableString")]
        #[unsafe(method(initWithReservationContainerReference:reservationItemReferences:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithReservationContainerReference_reservationItemReferences(
            this: Allocated<Self>,
            reservation_container_reference: Option<&INSpeakableString>,
            reservation_item_references: Option<&NSArray<INSpeakableString>>,
        ) -> Retained<Self>;

        #[cfg(feature = "INSpeakableString")]
        #[unsafe(method(reservationContainerReference))]
        #[unsafe(method_family = none)]
        pub unsafe fn reservationContainerReference(&self) -> Option<Retained<INSpeakableString>>;

        #[cfg(feature = "INSpeakableString")]
        #[unsafe(method(reservationItemReferences))]
        #[unsafe(method_family = none)]
        pub unsafe fn reservationItemReferences(
            &self,
        ) -> Option<Retained<NSArray<INSpeakableString>>>;
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(feature = "INIntent")]
impl INGetReservationDetailsIntent {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}