2020-04-07 15:25:33 -05: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 11:15:39 -05:00
import Account
2020-04-07 15:25:33 -05:00
extension TwitterFeedProvider : ExtensionPoint {
2020-04-14 16:47:05 -05:00
static var isSinglton = false
2020-04-22 14:16:50 -05:00
static var isDeveloperBuildRestricted = true
2020-04-14 16:47:05 -05:00
static var title = NSLocalizedString ( " Twitter " , comment : " Twitter " )
static var templateImage = AppAssets . extensionPointTwitter
static var description : NSAttributedString = {
2020-04-16 11:15:39 -05: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 16:47:05 -05:00
} ( )
2020-04-08 10:12:06 -05:00
var extensionPointID : ExtensionPointIdentifer {
2020-04-16 18:19:49 -05:00
return ExtensionPointIdentifer . twitter ( screenName )
2020-04-14 22:33:05 -05:00
}
var title : String {
return " @ \( screenName ) "
2020-04-07 15:25:33 -05:00
}
}