mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-15 10:49:14 +01:00
29 lines
476 B
Swift
29 lines
476 B
Swift
//
|
|
// UnreadCountDictionary.swift
|
|
// Database
|
|
//
|
|
// Created by Brent Simmons on 8/31/17.
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import Articles
|
|
|
|
public struct UnreadCountDictionary {
|
|
|
|
private var dictionary = [String: Int]()
|
|
|
|
public var isEmpty: Bool {
|
|
return dictionary.count < 1
|
|
}
|
|
|
|
public subscript(_ feedID: String) -> Int? {
|
|
get {
|
|
return dictionary[feedID]
|
|
}
|
|
set {
|
|
dictionary[feedID] = newValue
|
|
}
|
|
}
|
|
}
|