mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
32 lines
946 B
Objective-C
32 lines
946 B
Objective-C
//
|
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class TSErrorMessage;
|
|
@class TSIncomingMessage;
|
|
@class TSThread;
|
|
@class YapDatabaseReadTransaction;
|
|
@class YapDatabaseReadWriteTransaction;
|
|
|
|
@protocol ContactsManagerProtocol;
|
|
|
|
@protocol NotificationsProtocol <NSObject>
|
|
|
|
- (void)notifyUserForIncomingMessage:(TSIncomingMessage *)incomingMessage
|
|
inThread:(TSThread *)thread
|
|
transaction:(YapDatabaseReadTransaction *)transaction;
|
|
|
|
- (void)notifyUserForErrorMessage:(TSErrorMessage *)error
|
|
thread:(TSThread *)thread
|
|
transaction:(YapDatabaseReadWriteTransaction *)transaction;
|
|
|
|
- (void)notifyUserForThreadlessErrorMessage:(TSErrorMessage *)error
|
|
transaction:(YapDatabaseReadWriteTransaction *)transaction;
|
|
|
|
- (void)clearAllNotifications;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|