|
|
|
@ -2,8 +2,6 @@
|
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
@class TSNumberVerifier;
|
|
|
|
|
|
|
|
|
|
#ifndef TextSecureKit_Constants_h
|
|
|
|
|
#define TextSecureKit_Constants_h
|
|
|
|
|
|
|
|
|
@ -15,8 +13,6 @@ typedef NS_ENUM(NSInteger, TSWhisperMessageType) {
|
|
|
|
|
TSUnencryptedWhisperMessageType = 4,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef enum { kSMSVerification, kPhoneNumberVerification } VerificationTransportType;
|
|
|
|
|
|
|
|
|
|
#pragma mark Server Address
|
|
|
|
|
|
|
|
|
|
#define textSecureHTTPTimeOut 10
|
|
|
|
@ -41,7 +37,6 @@ typedef enum { kSMSVerification, kPhoneNumberVerification } VerificationTranspor
|
|
|
|
|
//
|
|
|
|
|
//#endif
|
|
|
|
|
|
|
|
|
|
#define textSecureGeneralAPI @"v1"
|
|
|
|
|
#define textSecureAccountsAPI @"v1/accounts"
|
|
|
|
|
#define textSecureAttributesAPI @"/attributes/"
|
|
|
|
|
|
|
|
|
@ -59,14 +54,4 @@ typedef enum { kSMSVerification, kPhoneNumberVerification } VerificationTranspor
|
|
|
|
|
|
|
|
|
|
#define SignalApplicationGroup @"group.org.whispersystems.signal.group"
|
|
|
|
|
|
|
|
|
|
#pragma mark Push RegistrationSpecific Constants
|
|
|
|
|
typedef NS_ENUM(NSInteger, TSPushRegistrationError) {
|
|
|
|
|
TSPushRegistrationErrorNetwork,
|
|
|
|
|
TSPushRegistrationErrorAuthentication,
|
|
|
|
|
TSPushRegistrationErrorRequest
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef void (^failedPushRegistrationRequestBlock)(TSPushRegistrationError error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|