Implement pagination in recents list service

This commit is contained in:
ismailgulek
2022-01-04 04:30:12 +03:00
parent 22a41a1f89
commit 4c69041e91
5 changed files with 102 additions and 3 deletions
@@ -170,6 +170,10 @@ public class MockRecentsListService: NSObject, RecentsListServiceProtocol {
}
}
public func paginate(inSection section: RecentsListServiceSection) {
// no-op
}
public func updateMode(_ mode: RecentsDataSourceMode) {
self.mode = mode
notifyDataChange()
@@ -210,7 +214,7 @@ public class MockRecentsListService: NSObject, RecentsListServiceProtocol {
}
private func notifyDataChange() {
multicastDelegate.invoke({ $0.serviceDidChangeData(self) })
multicastDelegate.invoke({ $0.recentsListServiceDidChangeData?(self) })
}
}