use objc2_user_notifications::UNNotificationInterruptionLevel;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum InterruptionLevel {
Passive,
Active,
TimeSensitive,
Critical,
}
impl InterruptionLevel {
pub(crate) fn to_un_level(self) -> UNNotificationInterruptionLevel {
match self {
InterruptionLevel::Passive => UNNotificationInterruptionLevel::Passive,
InterruptionLevel::Active => UNNotificationInterruptionLevel::Active,
InterruptionLevel::TimeSensitive => UNNotificationInterruptionLevel::TimeSensitive,
InterruptionLevel::Critical => UNNotificationInterruptionLevel::Critical,
}
}
}