Add the isSyncingPaused property to WebFeed

This commit is contained in:
Maurice Parker
2022-02-01 16:01:49 -08:00
parent bd1b54507f
commit 4d622557f9
2 changed files with 18 additions and 0 deletions

View File

@@ -192,6 +192,15 @@ public final class WebFeed: Feed, Renamable, Hashable {
}
}
public var isSyncingPaused: Bool {
get {
return metadata.isSyncingPaused ?? false
}
set {
metadata.isSyncingPaused = newValue
}
}
// MARK: - DisplayNameProvider
public var nameForDisplay: String {

View File

@@ -30,6 +30,7 @@ final class WebFeedMetadata: Codable {
case sinceToken
case externalID = "subscriptionID"
case folderRelationship
case isSyncingPaused
}
var webFeedID: String {
@@ -136,6 +137,14 @@ final class WebFeedMetadata: Codable {
}
}
}
var isSyncingPaused: Bool? {
didSet {
if isSyncingPaused != oldValue {
valueDidChange(.isSyncingPaused)
}
}
}
weak var delegate: WebFeedMetadataDelegate?