NetNewsWire/Frameworks/Account/LocalAccount/LocalAccountDelegate.swift

45 lines
940 B
Swift
Raw Normal View History

2017-09-17 20:32:58 +02:00
//
// LocalAccountDelegate.swift
// Account
//
// Created by Brent Simmons on 9/16/17.
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
//
import Foundation
import RSWeb
2017-09-17 20:32:58 +02:00
final class LocalAccountDelegate: AccountDelegate {
2017-09-17 20:32:58 +02:00
2017-09-28 22:16:47 +02:00
let supportsSubFolders = false
let server: String? = nil
2019-05-05 10:25:21 +02:00
var credentials: Credentials?
2017-10-02 22:15:07 +02:00
private let refresher = LocalAccountRefresher()
var refreshProgress: DownloadProgress {
return refresher.progress
}
static func validateCredentials(transport: Transport, credentials: Credentials, completionHandler handler: (Result<Bool, Error>) -> Void) {
return handler(.success(false))
}
func refreshAll(for account: Account) {
refresher.refreshFeeds(account.flattenedFeeds())
2017-09-17 20:32:58 +02:00
}
func accountDidInitialize(_ account: Account) {
}
// MARK: Disk
func update(account: Account, withUserInfo: NSDictionary?) {
}
func userInfo(for: Account) -> NSDictionary? {
return nil
}
2017-09-17 20:32:58 +02:00
}