use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[deprecated = "Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead"]
pub struct ACAccountCredential;
);
extern_conformance!(
unsafe impl NSObjectProtocol for ACAccountCredential {}
);
impl ACAccountCredential {
extern_methods!(
#[deprecated = "Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead"]
#[unsafe(method(initWithOAuthToken:tokenSecret:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithOAuthToken_tokenSecret(
this: Allocated<Self>,
token: Option<&NSString>,
secret: Option<&NSString>,
) -> Option<Retained<Self>>;
#[deprecated = "Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead"]
#[unsafe(method(initWithOAuth2Token:refreshToken:expiryDate:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithOAuth2Token_refreshToken_expiryDate(
this: Allocated<Self>,
token: Option<&NSString>,
refresh_token: Option<&NSString>,
expiry_date: Option<&NSDate>,
) -> Option<Retained<Self>>;
#[deprecated = "Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead"]
#[unsafe(method(oauthToken))]
#[unsafe(method_family = none)]
pub unsafe fn oauthToken(&self) -> Retained<NSString>;
#[deprecated = "Use appropriate non-Apple SDK corresponding to the type of account you want to reference instead"]
#[unsafe(method(setOauthToken:))]
#[unsafe(method_family = none)]
pub unsafe fn setOauthToken(&self, oauth_token: Option<&NSString>);
);
}
impl ACAccountCredential {
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>;
);
}