use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MXSignpostRecord;
unsafe impl ClassType for MXSignpostRecord {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for MXSignpostRecord {}
unsafe impl NSObjectProtocol for MXSignpostRecord {}
unsafe impl NSSecureCoding for MXSignpostRecord {}
extern_methods!(
unsafe impl MXSignpostRecord {
#[method_id(@__retain_semantics Other subsystem)]
pub unsafe fn subsystem(&self) -> Id<NSString>;
#[method_id(@__retain_semantics Other category)]
pub unsafe fn category(&self) -> Id<NSString>;
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Id<NSString>;
#[method_id(@__retain_semantics Other beginTimeStamp)]
pub unsafe fn beginTimeStamp(&self) -> Id<NSDate>;
#[method_id(@__retain_semantics Other endTimeStamp)]
pub unsafe fn endTimeStamp(&self) -> Option<Id<NSDate>>;
#[method_id(@__retain_semantics Other duration)]
pub unsafe fn duration(&self) -> Option<Id<NSMeasurement<NSUnitDuration>>>;
#[method(isInterval)]
pub unsafe fn isInterval(&self) -> bool;
#[method_id(@__retain_semantics Other JSONRepresentation)]
pub unsafe fn JSONRepresentation(&self) -> Id<NSData>;
#[method_id(@__retain_semantics Other dictionaryRepresentation)]
pub unsafe fn dictionaryRepresentation(&self) -> Id<NSDictionary>;
}
);
extern_methods!(
unsafe impl MXSignpostRecord {
#[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>;
}
);