session-ios/SignalServiceKit/src/Messages/OWSCallIceUpdateMessage.m
Michael Kirk ccb4a88742 Import SSK (and history) into Signal-iOS
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
2017-07-21 13:55:01 -04:00

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