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.
25 lines
593 B
Objective-C
25 lines
593 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
|
|
|
|
MacrosSingletonInterface
|
|
|
|
- (void)performRequest:(RPAPICall*)apiCall
|
|
success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
|
|
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;
|
|
|
|
- (TOCFuture*)futureForRequest:(RPAPICall*)apiCall;
|
|
|
|
@end
|