42 lines
747 B
Swift
42 lines
747 B
Swift
|
//
|
||
|
// 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 {
|
||
|
get {
|
||
|
return DownloadProgress(numberOfTasks: 0) // TODO
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func refreshAll(for: Account) {
|
||
|
|
||
|
// TODO
|
||
|
}
|
||
|
|
||
|
// MARK: Disk
|
||
|
|
||
|
func update(account: Account, withUserInfo: NSDictionary?) {
|
||
|
|
||
|
// TODO: add username to account name
|
||
|
account.nameForDisplay = NSLocalizedString("Feedbin", comment: "Feedbin Account Name")
|
||
|
}
|
||
|
|
||
|
func userInfo(for: Account) -> NSDictionary? {
|
||
|
|
||
|
// TODO: save username
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
|