use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MXMetric;
unsafe impl ClassType for MXMetric {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for MXMetric {}
unsafe impl NSObjectProtocol for MXMetric {}
unsafe impl NSSecureCoding for MXMetric {}
extern_methods!(
unsafe impl MXMetric {
#[method_id(@__retain_semantics Other JSONRepresentation)]
pub unsafe fn JSONRepresentation(&self) -> Id<NSData>;
#[deprecated]
#[method_id(@__retain_semantics Other DictionaryRepresentation)]
pub unsafe fn DictionaryRepresentation(&self) -> Id<NSDictionary>;
#[method_id(@__retain_semantics Other dictionaryRepresentation)]
pub unsafe fn dictionaryRepresentation(&self) -> Id<NSDictionary>;
}
);
extern_methods!(
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>;
}
);