| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2014 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 <Foundation/Foundation.h> | |
| 12 | |
| 13 #import "WebRTC/RTCIceCandidate.h" | |
| 14 #import "WebRTC/RTCSessionDescription.h" | |
| 15 | |
| 16 typedef enum { | |
| 17 kARDSignalingMessageTypeCandidate, | |
| 18 kARDSignalingMessageTypeCandidateRemoval, | |
| 19 kARDSignalingMessageTypeOffer, | |
| 20 kARDSignalingMessageTypeAnswer, | |
| 21 kARDSignalingMessageTypeBye, | |
| 22 } ARDSignalingMessageType; | |
| 23 | |
| 24 @interface ARDSignalingMessage : NSObject | |
| 25 | |
| 26 @property(nonatomic, readonly) ARDSignalingMessageType type; | |
| 27 | |
| 28 + (ARDSignalingMessage *)messageFromJSONString:(NSString *)jsonString; | |
| 29 - (NSData *)JSONData; | |
| 30 | |
| 31 @end | |
| 32 | |
| 33 @interface ARDICECandidateMessage : ARDSignalingMessage | |
| 34 | |
| 35 @property(nonatomic, readonly) RTCIceCandidate *candidate; | |
| 36 | |
| 37 - (instancetype)initWithCandidate:(RTCIceCandidate *)candidate; | |
| 38 | |
| 39 @end | |
| 40 | |
| 41 @interface ARDICECandidateRemovalMessage : ARDSignalingMessage | |
| 42 | |
| 43 @property(nonatomic, readonly) NSArray<RTCIceCandidate *> *candidates; | |
| 44 | |
| 45 - (instancetype)initWithRemovedCandidates: | |
| 46 (NSArray<RTCIceCandidate *> *)candidates; | |
| 47 | |
| 48 @end | |
| 49 | |
| 50 @interface ARDSessionDescriptionMessage : ARDSignalingMessage | |
| 51 | |
| 52 @property(nonatomic, readonly) RTCSessionDescription *sessionDescription; | |
| 53 | |
| 54 - (instancetype)initWithDescription:(RTCSessionDescription *)description; | |
| 55 | |
| 56 @end | |
| 57 | |
| 58 @interface ARDByeMessage : ARDSignalingMessage | |
| 59 @end | |
| OLD | NEW |