use objc2::__framework_prelude::*;
use crate::*;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HMPresenceEventType(pub NSUInteger);
impl HMPresenceEventType {
#[doc(alias = "HMPresenceEventTypeEveryEntry")]
pub const EveryEntry: Self = Self(1);
#[doc(alias = "HMPresenceEventTypeEveryExit")]
pub const EveryExit: Self = Self(2);
#[doc(alias = "HMPresenceEventTypeFirstEntry")]
pub const FirstEntry: Self = Self(3);
#[doc(alias = "HMPresenceEventTypeLastExit")]
pub const LastExit: Self = Self(4);
#[doc(alias = "HMPresenceEventTypeAtHome")]
pub const AtHome: Self = Self(HMPresenceEventType::FirstEntry.0);
#[doc(alias = "HMPresenceEventTypeNotAtHome")]
pub const NotAtHome: Self = Self(HMPresenceEventType::LastExit.0);
}
unsafe impl Encode for HMPresenceEventType {
const ENCODING: Encoding = NSUInteger::ENCODING;
}
unsafe impl RefEncode for HMPresenceEventType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HMPresenceEventUserType(pub NSUInteger);
impl HMPresenceEventUserType {
#[doc(alias = "HMPresenceEventUserTypeCurrentUser")]
pub const CurrentUser: Self = Self(1);
#[doc(alias = "HMPresenceEventUserTypeHomeUsers")]
pub const HomeUsers: Self = Self(2);
#[doc(alias = "HMPresenceEventUserTypeCustomUsers")]
pub const CustomUsers: Self = Self(3);
}
unsafe impl Encode for HMPresenceEventUserType {
const ENCODING: Encoding = NSUInteger::ENCODING;
}
unsafe impl RefEncode for HMPresenceEventUserType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}