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 CNContactProperty;
);
extern_conformance!(
unsafe impl NSCoding for CNContactProperty {}
);
extern_conformance!(
unsafe impl NSCopying for CNContactProperty {}
);
unsafe impl CopyingHelper for CNContactProperty {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for CNContactProperty {}
);
extern_conformance!(
unsafe impl NSSecureCoding for CNContactProperty {}
);
impl CNContactProperty {
extern_methods!(
#[cfg(feature = "CNContact")]
#[unsafe(method(contact))]
#[unsafe(method_family = none)]
pub unsafe fn contact(&self) -> Retained<CNContact>;
#[unsafe(method(key))]
#[unsafe(method_family = none)]
pub unsafe fn key(&self) -> Retained<NSString>;
#[unsafe(method(value))]
#[unsafe(method_family = none)]
pub unsafe fn value(&self) -> Option<Retained<AnyObject>>;
#[unsafe(method(identifier))]
#[unsafe(method_family = none)]
pub unsafe fn identifier(&self) -> Option<Retained<NSString>>;
#[unsafe(method(label))]
#[unsafe(method_family = none)]
pub unsafe fn label(&self) -> Option<Retained<NSString>>;
);
}
impl CNContactProperty {
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>;
);
}