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_HKQuantity")]
pub struct HKQuantity;
#[cfg(feature = "HealthKit_HKQuantity")]
unsafe impl ClassType for HKQuantity {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "HealthKit_HKQuantity")]
unsafe impl Send for HKQuantity {}
#[cfg(feature = "HealthKit_HKQuantity")]
unsafe impl Sync for HKQuantity {}
#[cfg(feature = "HealthKit_HKQuantity")]
unsafe impl NSCoding for HKQuantity {}
#[cfg(feature = "HealthKit_HKQuantity")]
unsafe impl NSCopying for HKQuantity {}
#[cfg(feature = "HealthKit_HKQuantity")]
unsafe impl NSObjectProtocol for HKQuantity {}
#[cfg(feature = "HealthKit_HKQuantity")]
unsafe impl NSSecureCoding for HKQuantity {}
extern_methods!(
#[cfg(feature = "HealthKit_HKQuantity")]
unsafe impl HKQuantity {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[cfg(feature = "HealthKit_HKUnit")]
#[method_id(@__retain_semantics Other quantityWithUnit:doubleValue:)]
pub unsafe fn quantityWithUnit_doubleValue(unit: &HKUnit, value: c_double) -> Id<Self>;
#[cfg(feature = "HealthKit_HKUnit")]
#[method(isCompatibleWithUnit:)]
pub unsafe fn isCompatibleWithUnit(&self, unit: &HKUnit) -> bool;
#[cfg(feature = "HealthKit_HKUnit")]
#[method(doubleValueForUnit:)]
pub unsafe fn doubleValueForUnit(&self, unit: &HKUnit) -> c_double;
#[method(compare:)]
pub unsafe fn compare(&self, quantity: &HKQuantity) -> NSComparisonResult;
}
);
extern_methods!(
#[cfg(feature = "HealthKit_HKQuantity")]
unsafe impl HKQuantity {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);