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 ASOneTimeCodeCredential;
);
#[cfg(feature = "ASAuthorizationCredential")]
extern_conformance!(
unsafe impl ASAuthorizationCredential for ASOneTimeCodeCredential {}
);
extern_conformance!(
unsafe impl NSCoding for ASOneTimeCodeCredential {}
);
extern_conformance!(
unsafe impl NSCopying for ASOneTimeCodeCredential {}
);
unsafe impl CopyingHelper for ASOneTimeCodeCredential {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for ASOneTimeCodeCredential {}
);
extern_conformance!(
unsafe impl NSSecureCoding for ASOneTimeCodeCredential {}
);
impl ASOneTimeCodeCredential {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(credentialWithCode:))]
#[unsafe(method_family = none)]
pub unsafe fn credentialWithCode(code: &NSString) -> Retained<Self>;
#[unsafe(method(initWithCode:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCode(this: Allocated<Self>, code: &NSString) -> Retained<Self>;
#[unsafe(method(code))]
#[unsafe(method_family = none)]
pub unsafe fn code(&self) -> Retained<NSString>;
);
}
impl ASOneTimeCodeCredential {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}