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
@@ -21,5 +21,11 @@ public protocol RecentsListServiceDelegate: AnyObject {
/// Delegate method to be called when service data updated
/// - Parameter service: service object
func serviceDidChangeData(_ service: RecentsListServiceProtocol)
@objc optional func recentsListServiceDidChangeData(_ service: RecentsListServiceProtocol)
/// Delegate method to be called when a specific section data updated. Called for each updated section before `recentsListServiceDidChangeData` if implemented.
/// - Parameter service: service object
/// - Parameter section: updated section
@objc optional func recentsListServiceDidChangeData(_ service: RecentsListServiceProtocol,
forSection section: RecentsListServiceSection)
}