session-ios/SignalServiceKit/src/TestUtils/NoopNotificationsManager.swift

24 lines
853 B
Swift
Raw Normal View History

2017-12-04 18:38:44 +01:00
//
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
2017-12-04 18:38:44 +01:00
//
2017-12-06 21:53:19 +01:00
@objc
2017-12-07 19:53:13 +01:00
public class NoopNotificationsManager: NSObject, NotificationsProtocol {
2017-12-04 18:38:44 +01:00
public func notifyUser(for incomingMessage: TSIncomingMessage, in thread: TSThread, contactsManager: ContactsManagerProtocol, transaction: YapDatabaseReadTransaction) {
2018-08-27 16:27:48 +02:00
owsFailDebug("")
2017-12-04 18:38:44 +01:00
}
public func notifyUser(for error: TSErrorMessage, thread: TSThread, transaction: YapDatabaseReadWriteTransaction) {
2018-08-23 16:37:34 +02:00
Logger.warn("skipping notification for: \(error.description)")
2017-12-04 18:38:44 +01:00
}
2018-04-17 21:23:05 +02:00
public func notifyUser(forThreadlessErrorMessage error: TSErrorMessage, transaction: YapDatabaseReadWriteTransaction) {
2018-08-23 16:37:34 +02:00
Logger.warn("skipping notification for: \(error.description)")
2018-04-17 21:23:05 +02:00
}
2018-10-16 17:47:54 +02:00
public func clearAllNotifications() {
Logger.warn("clearAllNotifications")
}
2017-12-04 18:38:44 +01:00
}