mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
ccb4a88742
git remote add ssk ../SignalServiceKit git remote update git merge -s ours --allow-unrelated-histories --no-commit ssk/master git read-tree --prefix=SignalServiceKit -u ssk/master git commit
40 lines
997 B
Objective-C
40 lines
997 B
Objective-C
// Created by Michael Kirk on 12/6/16.
|
|
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
|
|
|
#import "OWSCallIceUpdateMessage.h"
|
|
#import "OWSSignalServiceProtos.pb.h"
|
|
|
|
@implementation OWSCallIceUpdateMessage
|
|
|
|
- (instancetype)initWithCallId:(UInt64)callId
|
|
sdp:(NSString *)sdp
|
|
sdpMLineIndex:(SInt32)sdpMLineIndex
|
|
sdpMid:(nullable NSString *)sdpMid
|
|
{
|
|
self = [super init];
|
|
if (!self) {
|
|
return self;
|
|
}
|
|
|
|
_callId = callId;
|
|
_sdp = sdp;
|
|
_sdpMLineIndex = sdpMLineIndex;
|
|
_sdpMid = sdpMid;
|
|
|
|
return self;
|
|
}
|
|
|
|
- (OWSSignalServiceProtosCallMessageIceUpdate *)asProtobuf
|
|
{
|
|
OWSSignalServiceProtosCallMessageIceUpdateBuilder *builder =
|
|
[OWSSignalServiceProtosCallMessageIceUpdateBuilder new];
|
|
|
|
[builder setId:self.callId];
|
|
[builder setSdp:self.sdp];
|
|
[builder setSdpMlineIndex:self.sdpMLineIndex];
|
|
[builder setSdpMid:self.sdpMid];
|
|
|
|
return [builder build];
|
|
}
|
|
|
|
@end
|