use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct INAirline;
);
extern_conformance!(
unsafe impl NSCoding for INAirline {}
);
extern_conformance!(
unsafe impl NSCopying for INAirline {}
);
unsafe impl CopyingHelper for INAirline {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for INAirline {}
);
extern_conformance!(
unsafe impl NSSecureCoding for INAirline {}
);
impl INAirline {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initWithName:iataCode:icaoCode:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithName_iataCode_icaoCode(
this: Allocated<Self>,
name: Option<&NSString>,
iata_code: Option<&NSString>,
icao_code: Option<&NSString>,
) -> Retained<Self>;
#[unsafe(method(name))]
#[unsafe(method_family = none)]
pub unsafe fn name(&self) -> Option<Retained<NSString>>;
#[unsafe(method(iataCode))]
#[unsafe(method_family = none)]
pub unsafe fn iataCode(&self) -> Option<Retained<NSString>>;
#[unsafe(method(icaoCode))]
#[unsafe(method_family = none)]
pub unsafe fn icaoCode(&self) -> Option<Retained<NSString>>;
);
}
impl INAirline {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}