2019-09-14 17:02:33 +00:00
|
|
|
//
|
|
|
|
// NotificationsMode.swift
|
2023-04-18 23:47:49 +00:00
|
|
|
// TuskerPreferences
|
2019-09-14 17:02:33 +00:00
|
|
|
//
|
|
|
|
// Created by Shadowfacts on 9/14/19.
|
|
|
|
// Copyright © 2019 Shadowfacts. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2023-04-18 23:47:49 +00:00
|
|
|
public enum NotificationsMode: String, Codable, CaseIterable {
|
2019-09-14 17:02:33 +00:00
|
|
|
case allNotifications
|
|
|
|
case mentionsOnly
|
|
|
|
}
|
|
|
|
|
|
|
|
extension NotificationsMode {
|
2023-04-18 23:47:49 +00:00
|
|
|
public var displayName: String {
|
2019-09-14 17:02:33 +00:00
|
|
|
switch self {
|
|
|
|
case .allNotifications:
|
|
|
|
return NSLocalizedString("All Notifications", comment: "display all notifications mode")
|
|
|
|
case .mentionsOnly:
|
|
|
|
return NSLocalizedString("Mentions Only", comment: "display only mentions mode")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|