2017-12-10 23:05:01 +01:00
|
|
|
//
|
|
|
|
// FeedbinAccountDelegate.swift
|
|
|
|
// Account
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 12/10/17.
|
|
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import RSWeb
|
|
|
|
|
|
|
|
final class FeedbinAccountDelegate: AccountDelegate {
|
|
|
|
|
|
|
|
let supportsSubFolders = false
|
|
|
|
|
|
|
|
var refreshProgress: DownloadProgress {
|
2018-02-14 22:14:25 +01:00
|
|
|
return DownloadProgress(numberOfTasks: 0) // TODO
|
2017-12-10 23:05:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func refreshAll(for: Account) {
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
// MARK: Disk
|
|
|
|
|
2017-12-20 02:48:30 +01:00
|
|
|
func accountDidInitialize(_ account: Account) {
|
2017-12-10 23:05:01 +01:00
|
|
|
|
|
|
|
// TODO: add username to account name
|
|
|
|
account.nameForDisplay = NSLocalizedString("Feedbin", comment: "Feedbin Account Name")
|
|
|
|
}
|
|
|
|
|
2017-12-20 02:48:30 +01:00
|
|
|
func update(account: Account, withUserInfo: NSDictionary?) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-12-10 23:05:01 +01:00
|
|
|
func userInfo(for: Account) -> NSDictionary? {
|
|
|
|
|
|
|
|
// TODO: save username
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|