2023-06-30 11:45:58 +02:00
|
|
|
// Copyright © 2023 Mastodon gGmbH. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2023-09-21 22:09:57 +02:00
|
|
|
class NotificationSettingsViewModel {
|
2023-09-26 15:36:01 +02:00
|
|
|
|
2023-06-30 11:45:58 +02:00
|
|
|
var selectedPolicy: NotificationPolicy
|
2023-09-26 15:36:01 +02:00
|
|
|
var notifyMentions: Bool
|
|
|
|
var notifyBoosts: Bool
|
|
|
|
var notifyFavorites: Bool
|
|
|
|
var notifyNewFollowers: Bool
|
|
|
|
|
|
|
|
var updated: Bool
|
2023-09-21 22:09:57 +02:00
|
|
|
|
2023-09-26 15:36:01 +02:00
|
|
|
init(selectedPolicy: NotificationPolicy, notifyMentions: Bool, notifyBoosts: Bool, notifyFavorites: Bool, notifyNewFollowers: Bool) {
|
2023-09-21 22:09:57 +02:00
|
|
|
self.selectedPolicy = selectedPolicy
|
2023-09-26 15:36:01 +02:00
|
|
|
self.notifyMentions = notifyMentions
|
|
|
|
self.notifyBoosts = notifyBoosts
|
|
|
|
self.notifyFavorites = notifyFavorites
|
|
|
|
self.notifyNewFollowers = notifyNewFollowers
|
|
|
|
|
|
|
|
self.updated = false
|
2023-09-21 22:09:57 +02:00
|
|
|
}
|
2023-06-30 11:45:58 +02:00
|
|
|
}
|