summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Notifications/NotificationResponse.swift
blob: d8a71454215c21726be0f94a0e8159edc91caef4 (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
//
//  NotificationResponse.swift
//  MullvadVPN
//
//  Created by pronebird on 09/05/2023.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation
import UserNotifications

/**
 Struct holding system or in-app notification response.
 */
struct NotificationResponse {
    /// Provider identifier.
    var providerIdentifier: NotificationProviderIdentifier

    /// Action identifier, i.e UNNotificationDefaultActionIdentifier or any custom.
    var actionIdentifier: String

    /// System notification response. Unset for in-app notifications.
    var systemResponse: UNNotificationResponse?
}