mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-27 01:52:30 +01:00
24 lines
483 B
Swift
24 lines
483 B
Swift
//
|
|
// Account+OPMLRepresentable.swift
|
|
// DataModel
|
|
//
|
|
// Created by Brent Simmons on 7/2/17.
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension Account: OPMLRepresentable {
|
|
|
|
public func OPMLString(indentLevel: Int) -> String {
|
|
|
|
var s = ""
|
|
for oneObject in topLevelObjects {
|
|
if let oneOPMLObject = oneObject as? OPMLRepresentable {
|
|
s += oneOPMLObject.OPMLString(indentLevel: indentLevel + 1)
|
|
}
|
|
}
|
|
return s
|
|
}
|
|
}
|