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 DDMatch;
);
extern_conformance!(
unsafe impl NSObjectProtocol for DDMatch {}
);
impl DDMatch {
extern_methods!(
#[unsafe(method(matchedString))]
#[unsafe(method_family = none)]
pub unsafe fn matchedString(&self) -> Retained<NSString>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl DDMatch {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(DDMatch, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct DDMatchLink;
);
extern_conformance!(
unsafe impl NSObjectProtocol for DDMatchLink {}
);
impl DDMatchLink {
extern_methods!(
#[unsafe(method(URL))]
#[unsafe(method_family = none)]
pub unsafe fn URL(&self) -> Retained<NSURL>;
);
}
impl DDMatchLink {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl DDMatchLink {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(DDMatch, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct DDMatchPhoneNumber;
);
extern_conformance!(
unsafe impl NSObjectProtocol for DDMatchPhoneNumber {}
);
impl DDMatchPhoneNumber {
extern_methods!(
#[unsafe(method(phoneNumber))]
#[unsafe(method_family = none)]
pub unsafe fn phoneNumber(&self) -> Retained<NSString>;
#[unsafe(method(label))]
#[unsafe(method_family = none)]
pub unsafe fn label(&self) -> Option<Retained<NSString>>;
);
}
impl DDMatchPhoneNumber {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl DDMatchPhoneNumber {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(DDMatch, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct DDMatchEmailAddress;
);
extern_conformance!(
unsafe impl NSObjectProtocol for DDMatchEmailAddress {}
);
impl DDMatchEmailAddress {
extern_methods!(
#[unsafe(method(emailAddress))]
#[unsafe(method_family = none)]
pub unsafe fn emailAddress(&self) -> Retained<NSString>;
#[unsafe(method(label))]
#[unsafe(method_family = none)]
pub unsafe fn label(&self) -> Option<Retained<NSString>>;
);
}
impl DDMatchEmailAddress {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl DDMatchEmailAddress {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(DDMatch, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct DDMatchPostalAddress;
);
extern_conformance!(
unsafe impl NSObjectProtocol for DDMatchPostalAddress {}
);
impl DDMatchPostalAddress {
extern_methods!(
#[unsafe(method(street))]
#[unsafe(method_family = none)]
pub unsafe fn street(&self) -> Option<Retained<NSString>>;
#[unsafe(method(city))]
#[unsafe(method_family = none)]
pub unsafe fn city(&self) -> Option<Retained<NSString>>;
#[unsafe(method(state))]
#[unsafe(method_family = none)]
pub unsafe fn state(&self) -> Option<Retained<NSString>>;
#[unsafe(method(postalCode))]
#[unsafe(method_family = none)]
pub unsafe fn postalCode(&self) -> Option<Retained<NSString>>;
#[unsafe(method(country))]
#[unsafe(method_family = none)]
pub unsafe fn country(&self) -> Option<Retained<NSString>>;
);
}
impl DDMatchPostalAddress {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl DDMatchPostalAddress {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(DDMatch, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct DDMatchCalendarEvent;
);
extern_conformance!(
unsafe impl NSObjectProtocol for DDMatchCalendarEvent {}
);
impl DDMatchCalendarEvent {
extern_methods!(
#[unsafe(method(isAllDay))]
#[unsafe(method_family = none)]
pub unsafe fn isAllDay(&self) -> bool;
#[unsafe(method(startDate))]
#[unsafe(method_family = none)]
pub unsafe fn startDate(&self) -> Option<Retained<NSDate>>;
#[unsafe(method(startTimeZone))]
#[unsafe(method_family = none)]
pub unsafe fn startTimeZone(&self) -> Option<Retained<NSTimeZone>>;
#[unsafe(method(endDate))]
#[unsafe(method_family = none)]
pub unsafe fn endDate(&self) -> Option<Retained<NSDate>>;
#[unsafe(method(endTimeZone))]
#[unsafe(method_family = none)]
pub unsafe fn endTimeZone(&self) -> Option<Retained<NSTimeZone>>;
);
}
impl DDMatchCalendarEvent {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl DDMatchCalendarEvent {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(DDMatch, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct DDMatchShipmentTrackingNumber;
);
extern_conformance!(
unsafe impl NSObjectProtocol for DDMatchShipmentTrackingNumber {}
);
impl DDMatchShipmentTrackingNumber {
extern_methods!(
#[unsafe(method(carrier))]
#[unsafe(method_family = none)]
pub unsafe fn carrier(&self) -> Retained<NSString>;
#[unsafe(method(trackingNumber))]
#[unsafe(method_family = none)]
pub unsafe fn trackingNumber(&self) -> Retained<NSString>;
);
}
impl DDMatchShipmentTrackingNumber {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl DDMatchShipmentTrackingNumber {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(DDMatch, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct DDMatchFlightNumber;
);
extern_conformance!(
unsafe impl NSObjectProtocol for DDMatchFlightNumber {}
);
impl DDMatchFlightNumber {
extern_methods!(
#[unsafe(method(airline))]
#[unsafe(method_family = none)]
pub unsafe fn airline(&self) -> Retained<NSString>;
#[unsafe(method(flightNumber))]
#[unsafe(method_family = none)]
pub unsafe fn flightNumber(&self) -> Retained<NSString>;
);
}
impl DDMatchFlightNumber {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl DDMatchFlightNumber {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_class!(
#[unsafe(super(DDMatch, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct DDMatchMoneyAmount;
);
extern_conformance!(
unsafe impl NSObjectProtocol for DDMatchMoneyAmount {}
);
impl DDMatchMoneyAmount {
extern_methods!(
#[unsafe(method(currency))]
#[unsafe(method_family = none)]
pub unsafe fn currency(&self) -> Retained<NSString>;
#[unsafe(method(amount))]
#[unsafe(method_family = none)]
pub unsafe fn amount(&self) -> c_double;
);
}
impl DDMatchMoneyAmount {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
impl DDMatchMoneyAmount {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}