Add cacheControlInfo to feed metadata.

This commit is contained in:
Brent Simmons
2024-12-01 16:54:28 -08:00
parent cf1c0c6197
commit b881d2fed6
2 changed files with 10 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ public extension WebFeed {
public static let authors = "authors"
public static let contentHash = "contentHash"
public static let conditionalGetInfo = "conditionalGetInfo"
public static let cacheControlInfo = "cacheControlInfo"
}
}

View File

@@ -27,6 +27,7 @@ final class WebFeedMetadata: Codable {
case isNotifyAboutNewArticles
case isArticleExtractorAlwaysOn
case conditionalGetInfo
case cacheControlInfo
case externalID = "subscriptionID"
case folderRelationship
}
@@ -111,6 +112,14 @@ final class WebFeedMetadata: Codable {
}
}
var cacheControlInfo: CacheControlInfo? {
didSet {
if cacheControlInfo != oldValue {
valueDidChange(.cacheControlInfo)
}
}
}
var externalID: String? {
didSet {
if externalID != oldValue {