|
|
|
@ -1,17 +1,16 @@
|
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "TSOutgoingMessage.h"
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@class OWSCallOfferMessage;
|
|
|
|
|
@class OWSCallAnswerMessage;
|
|
|
|
|
@class OWSCallIceUpdateMessage;
|
|
|
|
|
@class OWSCallHangupMessage;
|
|
|
|
|
@class OWSCallBusyMessage;
|
|
|
|
|
|
|
|
|
|
@class OWSCallHangupMessage;
|
|
|
|
|
@class OWSCallIceUpdateMessage;
|
|
|
|
|
@class OWSCallOfferMessage;
|
|
|
|
|
@class TSThread;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -19,6 +18,17 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
*/
|
|
|
|
|
@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;
|
|
|
|
|