//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::AuthenticationServices::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "AuthenticationServices_ASPasswordCredential")]
    pub struct ASPasswordCredential;

    #[cfg(feature = "AuthenticationServices_ASPasswordCredential")]
    unsafe impl ClassType for ASPasswordCredential {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "AuthenticationServices_ASPasswordCredential")]
unsafe impl ASAuthorizationCredential for ASPasswordCredential {}

#[cfg(feature = "AuthenticationServices_ASPasswordCredential")]
unsafe impl NSCoding for ASPasswordCredential {}

#[cfg(feature = "AuthenticationServices_ASPasswordCredential")]
unsafe impl NSCopying for ASPasswordCredential {}

#[cfg(feature = "AuthenticationServices_ASPasswordCredential")]
unsafe impl NSObjectProtocol for ASPasswordCredential {}

#[cfg(feature = "AuthenticationServices_ASPasswordCredential")]
unsafe impl NSSecureCoding for ASPasswordCredential {}

extern_methods!(
    #[cfg(feature = "AuthenticationServices_ASPasswordCredential")]
    unsafe impl ASPasswordCredential {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Init initWithUser:password:)]
        pub unsafe fn initWithUser_password(
            this: Option<Allocated<Self>>,
            user: &NSString,
            password: &NSString,
        ) -> Id<Self>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other credentialWithUser:password:)]
        pub unsafe fn credentialWithUser_password(user: &NSString, password: &NSString)
            -> Id<Self>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other user)]
        pub unsafe fn user(&self) -> Id<NSString>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other password)]
        pub unsafe fn password(&self) -> Id<NSString>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "AuthenticationServices_ASPasswordCredential")]
    unsafe impl ASPasswordCredential {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);
