mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Improves test coverage in Feedly. Adds callbacks to SyncDatabase. Content is paged from Feedly. Unread status is set before articles are ingested.
This commit is contained in:
@@ -23,8 +23,8 @@ public final class SyncDatabase {
|
||||
|
||||
}
|
||||
|
||||
public func insertStatuses(_ statuses: [SyncStatus]) {
|
||||
syncStatusTable.insertStatuses(statuses)
|
||||
public func insertStatuses(_ statuses: [SyncStatus], completionHandler: (() -> ())? = nil) {
|
||||
syncStatusTable.insertStatuses(statuses, completionHandler: completionHandler)
|
||||
}
|
||||
|
||||
public func selectForProcessing() -> [SyncStatus] {
|
||||
@@ -35,12 +35,12 @@ public final class SyncDatabase {
|
||||
return syncStatusTable.selectPendingCount()
|
||||
}
|
||||
|
||||
public func resetSelectedForProcessing(_ articleIDs: [String]) {
|
||||
syncStatusTable.resetSelectedForProcessing(articleIDs)
|
||||
public func resetSelectedForProcessing(_ articleIDs: [String], completionHandler: (() -> ())? = nil) {
|
||||
syncStatusTable.resetSelectedForProcessing(articleIDs, completionHandler: completionHandler)
|
||||
}
|
||||
|
||||
public func deleteSelectedForProcessing(_ articleIDs: [String]) {
|
||||
syncStatusTable.deleteSelectedForProcessing(articleIDs)
|
||||
public func deleteSelectedForProcessing(_ articleIDs: [String], completionHandler: (() -> ())? = nil) {
|
||||
syncStatusTable.deleteSelectedForProcessing(articleIDs, completionHandler: completionHandler)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user