mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
- Using same clang format file for old and new files. - Moving out all TextSecure code to allow other clients (OS X, iOS) to integrate easily TextSecure functionality. - Use TextSecure API to signup.
25 lines
602 B
Objective-C
25 lines
602 B
Objective-C
//
|
|
// CallServerRequests.h
|
|
// Signal
|
|
//
|
|
// Created by Frederic Jacobs on 31/07/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "RPAPICall.h"
|
|
|
|
#import <CollapsingFutures.h>
|
|
|
|
@interface RPServerRequestsManager : NSObject
|
|
|
|
+ (instancetype)sharedManager;
|
|
|
|
- (void)performRequest:(RPAPICall *)apiCall
|
|
success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
|
|
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;
|
|
|
|
- (TOCFuture *)futureForRequest:(RPAPICall *)apiCall;
|
|
|
|
@end
|