2017-02-02 21:13:41 +01:00
|
|
|
//
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
2016-12-18 22:08:26 +01:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@class OWSSignalServiceProtosCallMessageIceUpdate;
|
|
|
|
|
2017-02-02 21:13:41 +01:00
|
|
|
/**
|
|
|
|
* Sent by both parties out of band of the RTC calling channels, as part of setting up those channels. The messages
|
|
|
|
* include network accessability information from the perspective of each client. Once compatible ICEUpdates have been
|
|
|
|
* exchanged, the clients can connect directly.
|
|
|
|
*/
|
2016-12-18 22:08:26 +01:00
|
|
|
@interface OWSCallIceUpdateMessage : NSObject
|
|
|
|
|
|
|
|
- (instancetype)initWithCallId:(UInt64)callId
|
|
|
|
sdp:(NSString *)sdp
|
|
|
|
sdpMLineIndex:(SInt32)sdpMLineIndex
|
|
|
|
sdpMid:(nullable NSString *)sdpMid;
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) UInt64 callId;
|
|
|
|
@property (nonatomic, readonly, copy) NSString *sdp;
|
|
|
|
@property (nonatomic, readonly) SInt32 sdpMLineIndex;
|
|
|
|
@property (nullable, nonatomic, readonly, copy) NSString *sdpMid;
|
|
|
|
|
|
|
|
- (OWSSignalServiceProtosCallMessageIceUpdate *)asProtobuf;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|