Tusker/Packages/TuskerPreferences/Sources/TuskerPreferences/NotificationsMode.swift

26 lines
649 B
Swift
Raw Normal View History

//
// NotificationsMode.swift
2023-04-18 23:47:49 +00:00
// TuskerPreferences
//
// 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 {
case allNotifications
case mentionsOnly
}
extension NotificationsMode {
2023-04-18 23:47:49 +00:00
public var displayName: String {
switch self {
case .allNotifications:
return NSLocalizedString("All Notifications", comment: "display all notifications mode")
case .mentionsOnly:
return NSLocalizedString("Mentions Only", comment: "display only mentions mode")
}
}
}