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.
49 lines
2.3 KiB
Objective-C
49 lines
2.3 KiB
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSOutgoingMessage.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class OWSCallAnswerMessage;
|
|
@class OWSCallBusyMessage;
|
|
@class OWSCallHangupMessage;
|
|
@class OWSCallIceUpdateMessage;
|
|
@class OWSCallOfferMessage;
|
|
@class TSThread;
|
|
|
|
/**
|
|
* WebRTC call signaling sent out of band, via the Signal Service
|
|
*/
|
|
@interface OWSOutgoingCallMessage : TSOutgoingMessage
|
|
|
|
- (instancetype)initOutgoingMessageWithTimestamp:(uint64_t)timestamp
|
|
inThread:(nullable TSThread *)thread
|
|
messageBody:(nullable NSString *)body
|
|
attachmentIds:(NSMutableArray<NSString *> *)attachmentIds
|
|
expiresInSeconds:(uint32_t)expiresInSeconds
|
|
expireStartedAt:(uint64_t)expireStartedAt
|
|
isVoiceMessage:(BOOL)isVoiceMessage
|
|
groupMetaMessage:(TSGroupMetaMessage)groupMetaMessage
|
|
quotedMessage:(nullable TSQuotedMessage *)quotedMessage
|
|
contactShare:(nullable OWSContact *)contactShare NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithThread:(TSThread *)thread offerMessage:(OWSCallOfferMessage *)offerMessage;
|
|
- (instancetype)initWithThread:(TSThread *)thread answerMessage:(OWSCallAnswerMessage *)answerMessage;
|
|
- (instancetype)initWithThread:(TSThread *)thread iceUpdateMessage:(OWSCallIceUpdateMessage *)iceUpdateMessage;
|
|
- (instancetype)initWithThread:(TSThread *)thread
|
|
iceUpdateMessages:(NSArray<OWSCallIceUpdateMessage *> *)iceUpdateMessage;
|
|
- (instancetype)initWithThread:(TSThread *)thread hangupMessage:(OWSCallHangupMessage *)hangupMessage;
|
|
- (instancetype)initWithThread:(TSThread *)thread busyMessage:(OWSCallBusyMessage *)busyMessage;
|
|
|
|
@property (nullable, nonatomic, readonly, strong) OWSCallOfferMessage *offerMessage;
|
|
@property (nullable, nonatomic, readonly, strong) OWSCallAnswerMessage *answerMessage;
|
|
@property (nullable, nonatomic, readonly, strong) NSArray<OWSCallIceUpdateMessage *> *iceUpdateMessages;
|
|
@property (nullable, nonatomic, readonly, strong) OWSCallHangupMessage *hangupMessage;
|
|
@property (nullable, nonatomic, readonly, strong) OWSCallBusyMessage *busyMessage;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|