NetNewsWire/Shared/ExtensionPoints/TwitterFeedProvider-Extensions.swift

31 lines
869 B
Swift
Raw Normal View History

2020-04-07 22:25:33 +02:00
//
// TwitterFeedProvider+Extensions.swift
// NetNewsWire
//
// Created by Maurice Parker on 4/7/20.
// Copyright © 2020 Ranchero Software. All rights reserved.
//
import Foundation
import Account
2020-04-07 22:25:33 +02:00
extension TwitterFeedProvider: ExtensionPoint {
static var isSinglton = false
static var isDeveloperBuildRestricted = true
static var title = NSLocalizedString("Twitter", comment: "Twitter")
static var image = AppAssets.extensionPointTwitter
static var description: NSAttributedString = {
return TwitterFeedProvider.makeAttrString("This extension enables you to subscribe to Twitter URLs as if they were RSS feeds. It only works with \(Account.defaultLocalAccountName) or iCloud accounts.")
}()
var extensionPointID: ExtensionPointIdentifer {
2020-04-17 01:19:49 +02:00
return ExtensionPointIdentifer.twitter(screenName)
}
var title: String {
return "@\(screenName)"
2020-04-07 22:25:33 +02:00
}
}