mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-15 18:59:18 +01:00
33 lines
818 B
Swift
33 lines
818 B
Swift
//
|
|
// TwitterFeedProvider+Extensions.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Maurice Parker on 4/7/20.
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import FeedProvider
|
|
import RSCore
|
|
import OAuthSwift
|
|
import Secrets
|
|
|
|
extension TwitterFeedProvider: ExtensionPoint {
|
|
|
|
static var isSinglton = false
|
|
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.")
|
|
}()
|
|
|
|
var extensionPointID: ExtensionPointIdentifer {
|
|
return ExtensionPointIdentifer.twitter(userID, screenName)
|
|
}
|
|
|
|
var title: String {
|
|
return "@\(screenName)"
|
|
}
|
|
|
|
}
|