Tusker/Tusker/Preferences/NotificationsMode.swift

26 lines
624 B
Swift

//
// NotificationsMode.swift
// Tusker
//
// Created by Shadowfacts on 9/14/19.
// Copyright © 2019 Shadowfacts. All rights reserved.
//
import Foundation
enum NotificationsMode: String, Codable, CaseIterable {
case allNotifications
case mentionsOnly
}
extension NotificationsMode {
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")
}
}
}