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.
42 lines
1.2 KiB
C
42 lines
1.2 KiB
C
10 years ago
|
//
|
||
9 years ago
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
||
10 years ago
|
//
|
||
|
|
||
|
/**
|
||
|
* TSNetworkManager imports all TSRequests to prevent massive imports
|
||
|
in classes that call TSNetworkManager
|
||
|
*/
|
||
|
#import "TSAllocAttachmentRequest.h"
|
||
|
#import "TSAttachmentRequest.h"
|
||
|
#import "TSAvailablePreKeysCountRequest.h"
|
||
|
#import "TSContactsIntersectionRequest.h"
|
||
|
#import "TSCurrentSignedPreKeyRequest.h"
|
||
|
#import "TSRecipientPrekeyRequest.h"
|
||
|
#import "TSRegisterForPushRequest.h"
|
||
|
#import "TSRegisterPrekeysRequest.h"
|
||
|
#import "TSRequestVerificationCodeRequest.h"
|
||
|
#import "TSSubmitMessageRequest.h"
|
||
|
#import "TSUnregisterAccountRequest.h"
|
||
|
#import "TSUpdateAttributesRequest.h"
|
||
|
#import "TSVerifyCodeRequest.h"
|
||
|
#import <AFNetworking/AFHTTPSessionManager.h>
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
9 years ago
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
9 years ago
|
extern NSString *const TSNetworkManagerDomain;
|
||
|
|
||
10 years ago
|
@interface TSNetworkManager : NSObject
|
||
|
|
||
9 years ago
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
8 years ago
|
+ (instancetype)sharedManager;
|
||
10 years ago
|
|
||
|
- (void)makeRequest:(TSRequest *)request
|
||
|
success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
|
||
9 years ago
|
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure NS_SWIFT_NAME(makeRequest(_:success:failure:));
|
||
10 years ago
|
|
||
|
@end
|
||
9 years ago
|
|
||
|
NS_ASSUME_NONNULL_END
|