use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(INIntent, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntent")]
#[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
pub struct INSearchForBillsIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INSearchForBillsIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INSearchForBillsIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INSearchForBillsIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSearchForBillsIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INSearchForBillsIntent {}
);
#[cfg(feature = "INIntent")]
impl INSearchForBillsIntent {
extern_methods!(
#[cfg(all(
feature = "INBillPayee",
feature = "INBillType",
feature = "INDateComponentsRange",
feature = "INPaymentStatus"
))]
#[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
#[unsafe(method(initWithBillPayee:paymentDateRange:billType:status:dueDateRange:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithBillPayee_paymentDateRange_billType_status_dueDateRange(
this: Allocated<Self>,
bill_payee: Option<&INBillPayee>,
payment_date_range: Option<&INDateComponentsRange>,
bill_type: INBillType,
status: INPaymentStatus,
due_date_range: Option<&INDateComponentsRange>,
) -> Retained<Self>;
#[cfg(feature = "INBillPayee")]
#[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
#[unsafe(method(billPayee))]
#[unsafe(method_family = none)]
pub unsafe fn billPayee(&self) -> Option<Retained<INBillPayee>>;
#[cfg(feature = "INDateComponentsRange")]
#[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
#[unsafe(method(paymentDateRange))]
#[unsafe(method_family = none)]
pub unsafe fn paymentDateRange(&self) -> Option<Retained<INDateComponentsRange>>;
#[cfg(feature = "INBillType")]
#[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
#[unsafe(method(billType))]
#[unsafe(method_family = none)]
pub unsafe fn billType(&self) -> INBillType;
#[cfg(feature = "INPaymentStatus")]
#[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
#[unsafe(method(status))]
#[unsafe(method_family = none)]
pub unsafe fn status(&self) -> INPaymentStatus;
#[cfg(feature = "INDateComponentsRange")]
#[deprecated = "INSearchForBillsIntent is deprecated. There is no replacement."]
#[unsafe(method(dueDateRange))]
#[unsafe(method_family = none)]
pub unsafe fn dueDateRange(&self) -> Option<Retained<INDateComponentsRange>>;
);
}
#[cfg(feature = "INIntent")]
impl INSearchForBillsIntent {
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>;
);
}
extern_protocol!(
#[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
pub unsafe trait INSearchForBillsIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSearchForBillsIntentResponse",
feature = "block2"
))]
#[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
#[unsafe(method(handleSearchForBills:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleSearchForBills_completion(
&self,
intent: &INSearchForBillsIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSearchForBillsIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSearchForBillsIntentResponse",
feature = "block2"
))]
#[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(confirmSearchForBills:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmSearchForBills_completion(
&self,
intent: &INSearchForBillsIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSearchForBillsIntentResponse>)>,
);
#[cfg(all(
feature = "INBillPayeeResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveBillPayeeForSearchForBills:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveBillPayeeForSearchForBills_withCompletion(
&self,
intent: &INSearchForBillsIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBillPayeeResolutionResult>)>,
);
#[cfg(all(
feature = "INDateComponentsRangeResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolvePaymentDateRangeForSearchForBills:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolvePaymentDateRangeForSearchForBills_withCompletion(
&self,
intent: &INSearchForBillsIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INDateComponentsRangeResolutionResult>)>,
);
#[cfg(all(
feature = "INBillTypeResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveBillTypeForSearchForBills:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveBillTypeForSearchForBills_withCompletion(
&self,
intent: &INSearchForBillsIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBillTypeResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INPaymentStatusResolutionResult",
feature = "block2"
))]
#[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveStatusForSearchForBills:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveStatusForSearchForBills_withCompletion(
&self,
intent: &INSearchForBillsIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INPaymentStatusResolutionResult>)>,
);
#[cfg(all(
feature = "INDateComponentsRangeResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSearchForBillsIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveDueDateRangeForSearchForBills:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveDueDateRangeForSearchForBills_withCompletion(
&self,
intent: &INSearchForBillsIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INDateComponentsRangeResolutionResult>)>,
);
}
);