2021-04-26 10:57:50 +02:00
|
|
|
//
|
|
|
|
// Mastodon+API+Subscriptions+Policy.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by MainasuK Cirno on 2021-4-26.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import MastodonSDK
|
2022-01-27 14:23:39 +01:00
|
|
|
import MastodonAsset
|
|
|
|
import MastodonLocalization
|
2021-04-26 10:57:50 +02:00
|
|
|
|
|
|
|
extension Mastodon.API.Subscriptions.Policy {
|
|
|
|
var title: String {
|
|
|
|
switch self {
|
|
|
|
case .all: return L10n.Scene.Settings.Section.Notifications.Trigger.anyone
|
|
|
|
case .follower: return L10n.Scene.Settings.Section.Notifications.Trigger.follower
|
|
|
|
case .followed: return L10n.Scene.Settings.Section.Notifications.Trigger.follow
|
|
|
|
case .none, ._other: return L10n.Scene.Settings.Section.Notifications.Trigger.noone
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|