mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
26 lines
444 B
Swift
26 lines
444 B
Swift
//
|
|
// ParsedOPMLDocument.swift
|
|
//
|
|
//
|
|
// Created by Brent Simmons on 8/18/24.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public final class ParsedOPMLDocument: Sendable {
|
|
|
|
public let title: String?
|
|
public let url: String?
|
|
public let items: [ParsedOPMLItem]?
|
|
|
|
init(opmlDocument: OPMLDocument) {
|
|
|
|
self.title = opmlDocument.title
|
|
self.url = opmlDocument.url
|
|
|
|
self.items = opmlDocument.items.map { opmlItem in
|
|
ParsedOPMLItem(opmlItem: opmlItem)
|
|
}
|
|
}
|
|
}
|