2019-09-20 18:34:31 +02:00
|
|
|
//
|
|
|
|
// AccountBehaviors.swift
|
|
|
|
// Account
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 9/20/19.
|
|
|
|
// Copyright © 2019 Ranchero Software, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
/**
|
|
|
|
Account specific behaviors are used to support different sync services. These sync
|
|
|
|
services don't all act the same and we need to reflect their differences in the
|
|
|
|
user interface as much as possible. For example some sync services don't allow
|
|
|
|
feeds to be in the root folder of the account.
|
|
|
|
*/
|
2020-02-18 22:49:29 +01:00
|
|
|
public typealias AccountBehaviors = [AccountBehavior]
|
|
|
|
|
|
|
|
public enum AccountBehavior: Equatable {
|
2019-09-20 18:34:31 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Account doesn't support copies of a feed that are in a folder to be made to the root folder.
|
|
|
|
*/
|
2020-02-18 22:49:29 +01:00
|
|
|
case disallowFeedCopyInRootFolder
|
2019-09-20 18:34:31 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Account doesn't support feeds in the root folder.
|
|
|
|
*/
|
2020-02-18 22:49:29 +01:00
|
|
|
case disallowFeedInRootFolder
|
2019-09-20 18:34:31 +02:00
|
|
|
|
2020-05-07 16:03:04 +02:00
|
|
|
/**
|
|
|
|
Account doesn't support folders
|
|
|
|
*/
|
|
|
|
case disallowFolderManagement
|
|
|
|
|
2019-09-20 18:34:31 +02:00
|
|
|
/**
|
|
|
|
Account doesn't support OPML imports
|
|
|
|
*/
|
2020-02-18 22:49:29 +01:00
|
|
|
case disallowOPMLImports
|
2019-09-20 18:34:31 +02:00
|
|
|
|
2020-02-18 22:49:29 +01:00
|
|
|
/**
|
|
|
|
Account doesn't allow mark as read after a period of days
|
|
|
|
*/
|
|
|
|
case disallowMarkAsUnreadAfterPeriod(Int)
|
|
|
|
|
2019-09-20 18:34:31 +02:00
|
|
|
}
|