use crate::common::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::HealthKit::*;
use crate::UniformTypeIdentifiers::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "HealthKit_HKAudiogramSample")]
pub struct HKAudiogramSample;
#[cfg(feature = "HealthKit_HKAudiogramSample")]
unsafe impl ClassType for HKAudiogramSample {
#[inherits(HKObject, NSObject)]
type Super = HKSample;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "HealthKit_HKAudiogramSample")]
unsafe impl NSCoding for HKAudiogramSample {}
#[cfg(feature = "HealthKit_HKAudiogramSample")]
unsafe impl NSObjectProtocol for HKAudiogramSample {}
#[cfg(feature = "HealthKit_HKAudiogramSample")]
unsafe impl NSSecureCoding for HKAudiogramSample {}
extern_methods!(
#[cfg(feature = "HealthKit_HKAudiogramSample")]
unsafe impl HKAudiogramSample {
#[cfg(all(
feature = "Foundation_NSArray",
feature = "HealthKit_HKAudiogramSensitivityPoint"
))]
#[method_id(@__retain_semantics Other sensitivityPoints)]
pub unsafe fn sensitivityPoints(&self) -> Id<NSArray<HKAudiogramSensitivityPoint>>;
#[cfg(all(
feature = "Foundation_NSArray",
feature = "Foundation_NSDate",
feature = "Foundation_NSDictionary",
feature = "Foundation_NSString",
feature = "HealthKit_HKAudiogramSensitivityPoint"
))]
#[method_id(@__retain_semantics Other audiogramSampleWithSensitivityPoints:startDate:endDate:metadata:)]
pub unsafe fn audiogramSampleWithSensitivityPoints_startDate_endDate_metadata(
sensitivity_points: &NSArray<HKAudiogramSensitivityPoint>,
start_date: &NSDate,
end_date: &NSDate,
metadata: Option<&NSDictionary<NSString, AnyObject>>,
) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "HealthKit_HKAudiogramSample")]
unsafe impl HKAudiogramSample {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "HealthKit_HKAudiogramSample")]
unsafe impl HKAudiogramSample {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "HealthKit_HKAudiogramSensitivityPoint")]
pub struct HKAudiogramSensitivityPoint;
#[cfg(feature = "HealthKit_HKAudiogramSensitivityPoint")]
unsafe impl ClassType for HKAudiogramSensitivityPoint {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "HealthKit_HKAudiogramSensitivityPoint")]
unsafe impl NSObjectProtocol for HKAudiogramSensitivityPoint {}
extern_methods!(
#[cfg(feature = "HealthKit_HKAudiogramSensitivityPoint")]
unsafe impl HKAudiogramSensitivityPoint {
#[cfg(feature = "HealthKit_HKQuantity")]
#[method_id(@__retain_semantics Other frequency)]
pub unsafe fn frequency(&self) -> Id<HKQuantity>;
#[cfg(feature = "HealthKit_HKQuantity")]
#[method_id(@__retain_semantics Other leftEarSensitivity)]
pub unsafe fn leftEarSensitivity(&self) -> Option<Id<HKQuantity>>;
#[cfg(feature = "HealthKit_HKQuantity")]
#[method_id(@__retain_semantics Other rightEarSensitivity)]
pub unsafe fn rightEarSensitivity(&self) -> Option<Id<HKQuantity>>;
#[cfg(all(feature = "Foundation_NSError", feature = "HealthKit_HKQuantity"))]
#[method_id(@__retain_semantics Other sensitivityPointWithFrequency:leftEarSensitivity:rightEarSensitivity:error:_)]
pub unsafe fn sensitivityPointWithFrequency_leftEarSensitivity_rightEarSensitivity_error(
frequency: &HKQuantity,
left_ear_sensitivity: Option<&HKQuantity>,
right_ear_sensitivity: Option<&HKQuantity>,
) -> Result<Id<Self>, Id<NSError>>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "HealthKit_HKAudiogramSensitivityPoint")]
unsafe impl HKAudiogramSensitivityPoint {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);