session-ios/SessionMessagingKit/Sending & Receiving/Notifications/NotificationsProtocol.h

39 lines
1.1 KiB
C
Raw Normal View History

2020-11-11 00:58:56 +01:00
//
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
2022-06-14 09:10:03 +02:00
@class SNReactMessage;
2020-11-11 00:58:56 +01:00
@class TSErrorMessage;
@class TSIncomingMessage;
2022-04-07 07:10:38 +02:00
@class TSInfoMessage;
2020-11-11 00:58:56 +01:00
@class TSThread;
@class YapDatabaseReadTransaction;
@class YapDatabaseReadWriteTransaction;
@protocol ContactsManagerProtocol;
@protocol NotificationsProtocol <NSObject>
- (void)notifyUserForIncomingMessage:(TSIncomingMessage *)incomingMessage
inThread:(TSThread *)thread
transaction:(YapDatabaseReadTransaction *)transaction;
2022-04-07 07:10:38 +02:00
- (void)notifyUserForIncomingCall:(TSInfoMessage *)callInfoMessage
2022-06-14 09:10:03 +02:00
inThread:(TSThread *)thread
transaction:(YapDatabaseReadTransaction *)transaction;
- (void)notifyUserForReaction:(SNReactMessage *)reactMessage
inThread:(TSThread *)thread
transaction:(YapDatabaseReadTransaction *)transaction;
2022-04-07 07:10:38 +02:00
- (void)cancelNotification:(NSString *)identifier;
2020-11-11 00:58:56 +01:00
- (void)clearAllNotifications;
@end
NS_ASSUME_NONNULL_END