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
37 lines
788 B
Objective-C
37 lines
788 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "OWSCallAnswerMessage.h"
|
|
#import "OWSSignalServiceProtos.pb.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@implementation OWSCallAnswerMessage
|
|
|
|
- (instancetype)initWithCallId:(UInt64)callId sessionDescription:(NSString *)sessionDescription
|
|
{
|
|
self = [super init];
|
|
if (!self) {
|
|
return self;
|
|
}
|
|
|
|
_callId = callId;
|
|
_sessionDescription = sessionDescription;
|
|
|
|
return self;
|
|
}
|
|
|
|
- (OWSSignalServiceProtosCallMessageAnswer *)asProtobuf
|
|
{
|
|
OWSSignalServiceProtosCallMessageAnswerBuilder *builder = [OWSSignalServiceProtosCallMessageAnswerBuilder new];
|
|
|
|
builder.id = self.callId;
|
|
builder.sessionDescription = self.sessionDescription;
|
|
|
|
return [builder build];
|
|
}
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|