2020-04-07 22:25:33 +02:00
//
// T w i t t e r F e e d P r o v i d e r + E x t e n s i o n s . s w i f t
// N e t N e w s W i r e
//
// C r e a t e d b y M a u r i c e P a r k e r o n 4 / 7 / 2 0 .
// C o p y r i g h t © 2 0 2 0 R a n c h e r o S o f t w a r e . A l l r i g h t s r e s e r v e d .
//
import Foundation
2020-04-16 18:15:39 +02:00
import Account
2020-04-07 22:25:33 +02:00
extension TwitterFeedProvider : ExtensionPoint {
2020-04-14 23:47:05 +02:00
static var isSinglton = false
2020-04-22 21:16:50 +02:00
static var isDeveloperBuildRestricted = true
2020-04-14 23:47:05 +02:00
static var title = NSLocalizedString ( " Twitter " , comment : " Twitter " )
static var templateImage = AppAssets . extensionPointTwitter
static var description : NSAttributedString = {
2020-04-16 18:15:39 +02:00
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. " )
2020-04-14 23:47:05 +02:00
} ( )
2020-04-08 17:12:06 +02:00
var extensionPointID : ExtensionPointIdentifer {
2020-04-17 01:19:49 +02:00
return ExtensionPointIdentifer . twitter ( screenName )
2020-04-15 05:33:05 +02:00
}
var title : String {
return " @ \( screenName ) "
2020-04-07 22:25:33 +02:00
}
}