NetNewsWire/Shared/ExtensionPoints/TwitterFeedProvider-Extensi...

31 lines
879 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 templateImage = AppAssets.extensionPointTwitter
static var description: NSAttributedString = {
return TwitterFeedProvider.makeAttrString("This extension enables you to subscribe to Twitter URL's 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
}
}