summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Notifications/Notification Providers/NotificationConfiguration.swift
blob: aa9acf3e0d167cd46b64184eb1ef403fed947c46 (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
//
//  NotificationConfiguration.swift
//  MullvadVPN
//
//  Created by pronebird on 27/04/2023.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation

enum NotificationConfiguration {
    /**
     Duration measured in days, before the account expiry, when a system notification is scheduled to remind user
     to add more time on account.
     */
    static let closeToExpirySystemTriggerIntervals = [3, 1]

    /**
     Duration measured in days, before the account expiry, when an in-app notification is scheduled to remind user
     to add more time on account.
     */
    static let closeToExpiryInAppTriggerIntervals: [Int] = [3, 2, 1, 0]

    /**
     Time interval measured in seconds at which to refresh account expiry in-app notification, which reformats
     the duration until account expiry over time.
     */
    static let closeToExpiryInAppNotificationRefreshInterval = 60
}