use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CXCall;
unsafe impl ClassType for CXCall {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CXCall {}
extern_methods!(
unsafe impl CXCall {
#[method_id(@__retain_semantics Other UUID)]
pub unsafe fn UUID(&self) -> Retained<NSUUID>;
#[method(isOutgoing)]
pub unsafe fn isOutgoing(&self) -> bool;
#[method(isOnHold)]
pub unsafe fn isOnHold(&self) -> bool;
#[method(hasConnected)]
pub unsafe fn hasConnected(&self) -> bool;
#[method(hasEnded)]
pub unsafe fn hasEnded(&self) -> bool;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method(isEqualToCall:)]
pub unsafe fn isEqualToCall(&self, call: &CXCall) -> bool;
}
);
extern_methods!(
unsafe impl CXCall {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);