2020-09-01 09:33:49 +02:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Combine
|
|
|
|
import ServiceLayer
|
|
|
|
|
|
|
|
public extension UserNotificationClient {
|
|
|
|
static let mock = UserNotificationClient(
|
|
|
|
getNotificationSettings: { _ in },
|
|
|
|
requestAuthorization: { _, _ in },
|
2021-02-04 21:09:05 +01:00
|
|
|
add: { _, completion in completion?(nil) },
|
|
|
|
removeDeliveredNotifications: { _ in },
|
2020-09-01 09:33:49 +02:00
|
|
|
delegateEvents: Empty(completeImmediately: false).eraseToAnyPublisher())
|
|
|
|
}
|