| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #import <Foundation/Foundation.h> | 11 #import <Foundation/Foundation.h> |
| 12 | 12 |
| 13 #import "webrtc/base/objc/RTCMacros.h" |
| 14 |
| 13 NS_ASSUME_NONNULL_BEGIN | 15 NS_ASSUME_NONNULL_BEGIN |
| 14 | 16 |
| 17 RTC_EXPORT |
| 15 @interface RTCIceServer : NSObject | 18 @interface RTCIceServer : NSObject |
| 16 | 19 |
| 17 /** URI(s) for this server represented as NSStrings. */ | 20 /** URI(s) for this server represented as NSStrings. */ |
| 18 @property(nonatomic, readonly) NSArray<NSString *> *urlStrings; | 21 @property(nonatomic, readonly) NSArray<NSString *> *urlStrings; |
| 19 | 22 |
| 20 /** Username to use if this RTCIceServer object is a TURN server. */ | 23 /** Username to use if this RTCIceServer object is a TURN server. */ |
| 21 @property(nonatomic, readonly, nullable) NSString *username; | 24 @property(nonatomic, readonly, nullable) NSString *username; |
| 22 | 25 |
| 23 /** Credential to use if this RTCIceServer object is a TURN server. */ | 26 /** Credential to use if this RTCIceServer object is a TURN server. */ |
| 24 @property(nonatomic, readonly, nullable) NSString *credential; | 27 @property(nonatomic, readonly, nullable) NSString *credential; |
| 25 | 28 |
| 26 - (nonnull instancetype)init NS_UNAVAILABLE; | 29 - (nonnull instancetype)init NS_UNAVAILABLE; |
| 27 | 30 |
| 28 /** Convenience initializer for a server with no authentication (e.g. STUN). */ | 31 /** Convenience initializer for a server with no authentication (e.g. STUN). */ |
| 29 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings; | 32 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings; |
| 30 | 33 |
| 31 /** | 34 /** |
| 32 * Initialize an RTCIceServer with its associated URLs, optional username, | 35 * Initialize an RTCIceServer with its associated URLs, optional username, |
| 33 * optional credential, and credentialType. | 36 * optional credential, and credentialType. |
| 34 */ | 37 */ |
| 35 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings | 38 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings |
| 36 username:(nullable NSString *)username | 39 username:(nullable NSString *)username |
| 37 credential:(nullable NSString *)credential | 40 credential:(nullable NSString *)credential |
| 38 NS_DESIGNATED_INITIALIZER; | 41 NS_DESIGNATED_INITIALIZER; |
| 39 | 42 |
| 40 @end | 43 @end |
| 41 | 44 |
| 42 NS_ASSUME_NONNULL_END | 45 NS_ASSUME_NONNULL_END |
| OLD | NEW |