mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
48 lines
2.3 KiB
Objective-C
48 lines
2.3 KiB
Objective-C
//
|
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSOutgoingMessage.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class SSKProtoCallMessageAnswer;
|
|
@class SSKProtoCallMessageBusy;
|
|
@class SSKProtoCallMessageHangup;
|
|
@class SSKProtoCallMessageIceUpdate;
|
|
@class SSKProtoCallMessageOffer;
|
|
@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
|
|
linkPreview:(nullable OWSLinkPreview *)linkPreview NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithThread:(TSThread *)thread offerMessage:(SSKProtoCallMessageOffer *)offerMessage;
|
|
- (instancetype)initWithThread:(TSThread *)thread answerMessage:(SSKProtoCallMessageAnswer *)answerMessage;
|
|
- (instancetype)initWithThread:(TSThread *)thread
|
|
iceUpdateMessages:(NSArray<SSKProtoCallMessageIceUpdate *> *)iceUpdateMessage;
|
|
- (instancetype)initWithThread:(TSThread *)thread hangupMessage:(SSKProtoCallMessageHangup *)hangupMessage;
|
|
- (instancetype)initWithThread:(TSThread *)thread busyMessage:(SSKProtoCallMessageBusy *)busyMessage;
|
|
|
|
@property (nullable, nonatomic, readonly) SSKProtoCallMessageOffer *offerMessage;
|
|
@property (nullable, nonatomic, readonly) SSKProtoCallMessageAnswer *answerMessage;
|
|
@property (nullable, nonatomic, readonly) NSArray<SSKProtoCallMessageIceUpdate *> *iceUpdateMessages;
|
|
@property (nullable, nonatomic, readonly) SSKProtoCallMessageHangup *hangupMessage;
|
|
@property (nullable, nonatomic, readonly) SSKProtoCallMessageBusy *busyMessage;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|