mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Still need to: - Fix indentation - Check for any FutureSource being returned instead of FutureSource.future - Check for then: vs thenTry: mixups - Check for main thread related issues - Check for other exception catching issues - Adjust directory layout - Manual end-to-end testing
31 lines
1.3 KiB
Objective-C
31 lines
1.3 KiB
Objective-C
#import "CallConnectUtil.h"
|
|
#import "CallConnectUtil_Initiator.h"
|
|
#import "CallConnectUtil_Responder.h"
|
|
#import "SignalUtil.h"
|
|
#import "Util.h"
|
|
|
|
@implementation CallConnectUtil
|
|
|
|
+(TOCFuture*) asyncInitiateCallToRemoteNumber:(PhoneNumber *)remoteNumber
|
|
andCallController:(CallController*)callController {
|
|
require(remoteNumber != nil);
|
|
require(callController != nil);
|
|
return [CallConnectUtil_Initiator asyncConnectCallToRemoteNumber:remoteNumber
|
|
withCallController:callController];
|
|
}
|
|
|
|
+(TOCFuture*) asyncRespondToCallWithSessionDescriptor:(ResponderSessionDescriptor*)sessionDescriptor
|
|
andCallController:(CallController*)callController {
|
|
require(sessionDescriptor != nil);
|
|
require(callController != nil);
|
|
return [CallConnectUtil_Responder asyncConnectToIncomingCallWithSessionDescriptor:sessionDescriptor
|
|
andCallController:callController];
|
|
}
|
|
|
|
+(TOCFuture*) asyncSignalTooBusyToAnswerCallWithSessionDescriptor:(ResponderSessionDescriptor*)sessionDescriptor {
|
|
require(sessionDescriptor != nil);
|
|
return [CallConnectUtil_Responder asyncSignalTooBusyToAnswerCallWithSessionDescriptor:sessionDescriptor];
|
|
}
|
|
|
|
@end
|