summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Notifications/NotificationProviderIdentifier.swift
blob: 2aac1f67e8a7934180a3c51b27b16053542195a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
//  NotificationProviderIdentifier.swift
//  MullvadVPN
//
//  Created by Mojgan on 2023-05-10.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation

enum NotificationPriority: Int, Comparable {
    case low = 1
    case medium = 2
    case high = 3
    case critical = 4

    static func < (lhs: NotificationPriority, rhs: NotificationPriority) -> Bool {
        return lhs.rawValue < rhs.rawValue
    }
}

enum NotificationProviderIdentifier: String {
    case accountExpirySystemNotification = "AccountExpiryNotification"
    case accountExpiryInAppNotification = "AccountExpiryInAppNotification"
    case registeredDeviceInAppNotification = "RegisteredDeviceInAppNotification"
    case tunnelStatusNotificationProvider = "TunnelStatusNotificationProvider"
    case latestChangesInAppNotificationProvider = "LatestChangesInAppNotificationProvider"
    case `default` = "default"

    var domainIdentifier: String {
        "net.mullvad.MullvadVPN.\(rawValue)"
    }
}