use crate::common::*;
use crate::Foundation::*;
use crate::MetricKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MetricKit_MXMetric")]
pub struct MXMetric;
#[cfg(feature = "MetricKit_MXMetric")]
unsafe impl ClassType for MXMetric {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MetricKit_MXMetric")]
unsafe impl NSCoding for MXMetric {}
#[cfg(feature = "MetricKit_MXMetric")]
unsafe impl NSObjectProtocol for MXMetric {}
#[cfg(feature = "MetricKit_MXMetric")]
unsafe impl NSSecureCoding for MXMetric {}
extern_methods!(
#[cfg(feature = "MetricKit_MXMetric")]
unsafe impl MXMetric {
#[cfg(feature = "Foundation_NSData")]
#[method_id(@__retain_semantics Other JSONRepresentation)]
pub unsafe fn JSONRepresentation(&self) -> Id<NSData>;
#[cfg(feature = "Foundation_NSDictionary")]
#[deprecated]
#[method_id(@__retain_semantics Other DictionaryRepresentation)]
pub unsafe fn DictionaryRepresentation(&self) -> Id<NSDictionary>;
#[cfg(feature = "Foundation_NSDictionary")]
#[method_id(@__retain_semantics Other dictionaryRepresentation)]
pub unsafe fn dictionaryRepresentation(&self) -> Id<NSDictionary>;
}
);
extern_methods!(
#[cfg(feature = "MetricKit_MXMetric")]
unsafe impl MXMetric {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);