mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-12 09:26:26 +01:00
37 lines
668 B
Swift
37 lines
668 B
Swift
//
|
|
// FeedListFolder.swift
|
|
// Evergreen
|
|
//
|
|
// Created by Brent Simmons on 11/4/17.
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import RSCore
|
|
import Data
|
|
|
|
final class FeedListFolder: Hashable, DisplayNameProvider {
|
|
|
|
let name: String
|
|
let feeds: Set<FeedListFeed>
|
|
let hashValue: Int
|
|
|
|
var nameForDisplay: String { // DisplayNameProvider
|
|
get {
|
|
return name
|
|
}
|
|
}
|
|
|
|
init(name: String, feeds: Set<FeedListFeed>) {
|
|
|
|
self.name = name
|
|
self.feeds = feeds
|
|
self.hashValue = name.hashValue
|
|
}
|
|
|
|
static func ==(lhs: FeedListFolder, rhs: FeedListFolder) -> Bool {
|
|
|
|
return lhs.name == rhs.name && lhs.feeds == rhs.feeds
|
|
}
|
|
}
|