1/* 2 * Copyright (c) 2021 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11#import "RTCIceCandidateErrorEvent+Private.h" 12 13#import "helpers/NSString+StdString.h" 14 15@implementation RTC_OBJC_TYPE (RTCIceCandidateErrorEvent) 16 17@synthesize address = _address; 18@synthesize port = _port; 19@synthesize url = _url; 20@synthesize errorCode = _errorCode; 21@synthesize errorText = _errorText; 22 23- (instancetype)init { 24 return [super init]; 25} 26 27- (instancetype)initWithAddress:(const std::string&)address 28 port:(const int)port 29 url:(const std::string&)url 30 errorCode:(const int)errorCode 31 errorText:(const std::string&)errorText { 32 if (self = [self init]) { 33 _address = [NSString stringForStdString:address]; 34 _port = port; 35 _url = [NSString stringForStdString:url]; 36 _errorCode = errorCode; 37 _errorText = [NSString stringForStdString:errorText]; 38 } 39 return self; 40} 41 42@end 43