mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-27 10:02:37 +01:00
42 lines
718 B
Swift
42 lines
718 B
Swift
//
|
|
// OPMLFeedSpecifier.swift
|
|
//
|
|
//
|
|
// Created by Brent Simmons on 8/18/24.
|
|
//
|
|
|
|
import Foundation
|
|
import SAX
|
|
|
|
public struct OPMLFeedSpecifier: Sendable {
|
|
|
|
let title: String?
|
|
let feedDescription: String?
|
|
let homePageURL: String?
|
|
let feedURL: String
|
|
|
|
init(title: String?, feedDescription: String?, homePageURL: String?, feedURL: String) {
|
|
|
|
if String.isEmptyOrNil(title) {
|
|
self.title = nil
|
|
} else {
|
|
self.title = title
|
|
}
|
|
|
|
if String.isEmptyOrNil(feedDescription) {
|
|
self.feedDescription = nil
|
|
} else {
|
|
self.feedDescription = feedDescription
|
|
}
|
|
|
|
if String.isEmptyOrNil(homePageURL) {
|
|
self.homePageURL = nil
|
|
} else {
|
|
self.homePageURL = homePageURL
|
|
}
|
|
|
|
self.feedURL = feedURL
|
|
}
|
|
}
|
|
|