mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
30 lines
474 B
Swift
30 lines
474 B
Swift
//
|
|
// ReaderAPIVariant.swift
|
|
//
|
|
//
|
|
// Created by Maurice Parker on 10/23/20.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
nonisolated public enum ReaderAPIVariant: Sendable {
|
|
case generic
|
|
case freshRSS
|
|
case inoreader
|
|
case bazQux
|
|
case theOldReader
|
|
|
|
public var host: String {
|
|
switch self {
|
|
case .inoreader:
|
|
return "https://www.inoreader.com"
|
|
case .bazQux:
|
|
return "https://bazqux.com"
|
|
case .theOldReader:
|
|
return "https://theoldreader.com"
|
|
default:
|
|
return ""
|
|
}
|
|
}
|
|
}
|