mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add createAccountURL computed property to AccountType.
This commit is contained in:
@@ -50,7 +50,27 @@ public enum AccountType: Int, Codable, Sendable {
|
||||
public var isDeveloperRestricted: Bool {
|
||||
return self == .cloudKit || self == .feedbin || self == .feedly || self == .inoreader
|
||||
}
|
||||
|
||||
|
||||
public var createAccountURL: URL? {
|
||||
switch self {
|
||||
case .onMyMac, .cloudKit:
|
||||
return nil
|
||||
case .feedly:
|
||||
return URL(string: "https://feedly.com/")!
|
||||
case .feedbin:
|
||||
return URL(string: "https://feedbin.com/signup")!
|
||||
case .newsBlur:
|
||||
return URL(string: "https://newsblur.com/")!
|
||||
case .freshRSS:
|
||||
return URL(string: "https://freshrss.org/")!
|
||||
case .inoreader:
|
||||
return URL(string: "https://www.inoreader.com/")!
|
||||
case .bazQux:
|
||||
return URL(string: "https://bazqux.com/")!
|
||||
case .theOldReader:
|
||||
return URL(string: "https://theoldreader.com/")!
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum FetchType {
|
||||
|
||||
Reference in New Issue
Block a user