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)]
pub struct ASAuthorizationProviderExtensionAuthorizationResult;
);
extern_conformance!(
unsafe impl NSObjectProtocol for ASAuthorizationProviderExtensionAuthorizationResult {}
);
impl ASAuthorizationProviderExtensionAuthorizationResult {
extern_methods!(
#[unsafe(method(initWithHTTPAuthorizationHeaders:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithHTTPAuthorizationHeaders(
this: Allocated<Self>,
http_authorization_headers: &NSDictionary<NSString, NSString>,
) -> Retained<Self>;
#[unsafe(method(initWithHTTPResponse:httpBody:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithHTTPResponse_httpBody(
this: Allocated<Self>,
http_response: &NSHTTPURLResponse,
http_body: Option<&NSData>,
) -> Retained<Self>;
#[unsafe(method(httpAuthorizationHeaders))]
#[unsafe(method_family = none)]
pub unsafe fn httpAuthorizationHeaders(
&self,
) -> Option<Retained<NSDictionary<NSString, NSString>>>;
#[unsafe(method(setHttpAuthorizationHeaders:))]
#[unsafe(method_family = none)]
pub unsafe fn setHttpAuthorizationHeaders(
&self,
http_authorization_headers: Option<&NSDictionary<NSString, NSString>>,
);
#[unsafe(method(httpResponse))]
#[unsafe(method_family = none)]
pub unsafe fn httpResponse(&self) -> Option<Retained<NSHTTPURLResponse>>;
#[unsafe(method(setHttpResponse:))]
#[unsafe(method_family = none)]
pub unsafe fn setHttpResponse(&self, http_response: Option<&NSHTTPURLResponse>);
#[unsafe(method(httpBody))]
#[unsafe(method_family = none)]
pub unsafe fn httpBody(&self) -> Option<Retained<NSData>>;
#[unsafe(method(setHttpBody:))]
#[unsafe(method_family = none)]
pub unsafe fn setHttpBody(&self, http_body: Option<&NSData>);
#[unsafe(method(privateKeys))]
#[unsafe(method_family = none)]
pub unsafe fn privateKeys(&self) -> Retained<NSArray>;
#[unsafe(method(setPrivateKeys:))]
#[unsafe(method_family = none)]
pub unsafe fn setPrivateKeys(&self, private_keys: &NSArray);
);
}
impl ASAuthorizationProviderExtensionAuthorizationResult {
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>;
);
}