use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CKUserIdentityLookupInfo;
unsafe impl ClassType for CKUserIdentityLookupInfo {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CKUserIdentityLookupInfo {}
unsafe impl NSCopying for CKUserIdentityLookupInfo {}
unsafe impl NSObjectProtocol for CKUserIdentityLookupInfo {}
unsafe impl NSSecureCoding for CKUserIdentityLookupInfo {}
extern_methods!(
unsafe impl CKUserIdentityLookupInfo {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithEmailAddress:)]
pub unsafe fn initWithEmailAddress(
this: Allocated<Self>,
email_address: &NSString,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithPhoneNumber:)]
pub unsafe fn initWithPhoneNumber(
this: Allocated<Self>,
phone_number: &NSString,
) -> Retained<Self>;
#[cfg(feature = "CKRecordID")]
#[method_id(@__retain_semantics Init initWithUserRecordID:)]
pub unsafe fn initWithUserRecordID(
this: Allocated<Self>,
user_record_id: &CKRecordID,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other lookupInfosWithEmails:)]
pub unsafe fn lookupInfosWithEmails(
emails: &NSArray<NSString>,
) -> Retained<NSArray<CKUserIdentityLookupInfo>>;
#[method_id(@__retain_semantics Other lookupInfosWithPhoneNumbers:)]
pub unsafe fn lookupInfosWithPhoneNumbers(
phone_numbers: &NSArray<NSString>,
) -> Retained<NSArray<CKUserIdentityLookupInfo>>;
#[cfg(feature = "CKRecordID")]
#[method_id(@__retain_semantics Other lookupInfosWithRecordIDs:)]
pub unsafe fn lookupInfosWithRecordIDs(
record_i_ds: &NSArray<CKRecordID>,
) -> Retained<NSArray<CKUserIdentityLookupInfo>>;
#[method_id(@__retain_semantics Other emailAddress)]
pub unsafe fn emailAddress(&self) -> Option<Retained<NSString>>;
#[method_id(@__retain_semantics Other phoneNumber)]
pub unsafe fn phoneNumber(&self) -> Option<Retained<NSString>>;
#[cfg(feature = "CKRecordID")]
#[method_id(@__retain_semantics Other userRecordID)]
pub unsafe fn userRecordID(&self) -> Option<Retained<CKRecordID>>;
}
);