mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
C
38 lines
1.0 KiB
C
5 years ago
|
//
|
||
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
extern NSString *const kNSNotificationName_IsCensorshipCircumventionActiveDidChange;
|
||
|
|
||
|
@class AFHTTPSessionManager;
|
||
|
@class OWSPrimaryStorage;
|
||
|
@class TSAccountManager;
|
||
|
|
||
|
@interface OWSSignalService : NSObject
|
||
|
|
||
|
/// For uploading avatar assets.
|
||
|
@property (nonatomic, readonly) AFHTTPSessionManager *CDNSessionManager;
|
||
|
|
||
|
+ (instancetype)sharedInstance;
|
||
|
|
||
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
|
#pragma mark - Censorship Circumvention
|
||
|
|
||
|
@property (atomic, readonly) BOOL isCensorshipCircumventionActive;
|
||
|
@property (atomic, readonly) BOOL hasCensoredPhoneNumber;
|
||
|
@property (atomic) BOOL isCensorshipCircumventionManuallyActivated;
|
||
|
@property (atomic) BOOL isCensorshipCircumventionManuallyDisabled;
|
||
|
@property (atomic, nullable) NSString *manualCensorshipCircumventionCountryCode;
|
||
|
|
||
|
/// For interacting with the Signal Service
|
||
|
- (AFHTTPSessionManager *)buildSignalServiceSessionManager;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|