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.
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
5 years ago
|
//
|
||
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@class AFSecurityPolicy;
|
||
|
|
||
|
extern NSString *const OWSFrontingHost_GoogleEgypt;
|
||
|
extern NSString *const OWSFrontingHost_GoogleUAE;
|
||
|
extern NSString *const OWSFrontingHost_GoogleOman;
|
||
|
extern NSString *const OWSFrontingHost_GoogleQatar;
|
||
|
|
||
|
@interface OWSCensorshipConfiguration : NSObject
|
||
|
|
||
|
// returns nil if phone number is not known to be censored
|
||
|
+ (nullable instancetype)censorshipConfigurationWithPhoneNumber:(NSString *)e164PhoneNumber;
|
||
|
|
||
|
// returns best censorship configuration for country code. Will return a default if one hasn't
|
||
|
// been specifically configured.
|
||
|
+ (instancetype)censorshipConfigurationWithCountryCode:(NSString *)countryCode;
|
||
|
+ (instancetype)defaultConfiguration;
|
||
|
|
||
|
+ (BOOL)isCensoredPhoneNumber:(NSString *)e164PhoneNumber;
|
||
|
|
||
|
@property (nonatomic, readonly) NSString *signalServiceReflectorHost;
|
||
|
@property (nonatomic, readonly) NSString *CDNReflectorHost;
|
||
|
@property (nonatomic, readonly) NSURL *domainFrontBaseURL;
|
||
|
@property (nonatomic, readonly) AFSecurityPolicy *domainFrontSecurityPolicy;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|