mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-12 17:36:19 +01:00
24 lines
465 B
Swift
24 lines
465 B
Swift
|
//
|
||
|
// FeedlyCollectionParser.swift
|
||
|
// Account
|
||
|
//
|
||
|
// Created by Kiel Gillard on 28/1/20.
|
||
|
// Copyright © 2020 Ranchero Software, LLC. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
struct FeedlyCollectionParser {
|
||
|
let collection: FeedlyCollection
|
||
|
|
||
|
private let rightToLeftTextSantizer = FeedlyRTLTextSanitizer()
|
||
|
|
||
|
var folderName: String {
|
||
|
return rightToLeftTextSantizer.sanitize(collection.label) ?? ""
|
||
|
}
|
||
|
|
||
|
var externalID: String {
|
||
|
return collection.id
|
||
|
}
|
||
|
}
|