mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
30 lines
664 B
C
30 lines
664 B
C
|
//
|
||
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@class TSStorageManager;
|
||
|
@class OWSMessageSender;
|
||
|
|
||
|
extern NSString * const kNSNotificationName_BlockedPhoneNumbersDidChange;
|
||
|
|
||
|
// This class can be safely accessed and used from any thread.
|
||
|
@interface TSBlockingManager : NSObject
|
||
|
|
||
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
|
+ (instancetype)sharedManager;
|
||
|
|
||
|
- (void)addBlockedPhoneNumber:(NSString *)phoneNumber;
|
||
|
|
||
|
- (void)removeBlockedPhoneNumber:(NSString *)phoneNumber;
|
||
|
|
||
|
- (void)setBlockedPhoneNumbers:(NSArray<NSString *> *)blockedPhoneNumbers;
|
||
|
|
||
|
- (NSArray<NSString *> *)blockedPhoneNumbers;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|