Index: webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m |
diff --git a/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m b/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m |
index cf70b73c0745ef53160252e40a6ad5f1e7423085..773c346c6b6f13ed49544084e965886b67013b37 100644 |
--- a/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m |
+++ b/webrtc/examples/objc/AppRTCDemo/RTCICECandidate+JSON.m |
@@ -8,9 +8,9 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#import "RTCICECandidate+JSON.h" |
+#import "RTCIceCandidate+JSON.h" |
-#import "RTCLogging.h" |
+#import "webrtc/base/objc/RTCLogging.h" |
static NSString const *kRTCICECandidateTypeKey = @"type"; |
static NSString const *kRTCICECandidateTypeValue = @"candidate"; |
@@ -18,14 +18,16 @@ static NSString const *kRTCICECandidateMidKey = @"id"; |
static NSString const *kRTCICECandidateMLineIndexKey = @"label"; |
static NSString const *kRTCICECandidateSdpKey = @"candidate"; |
-@implementation RTCICECandidate (JSON) |
+@implementation RTCIceCandidate (JSON) |
-+ (RTCICECandidate *)candidateFromJSONDictionary:(NSDictionary *)dictionary { |
++ (RTCIceCandidate *)candidateFromJSONDictionary:(NSDictionary *)dictionary { |
NSString *mid = dictionary[kRTCICECandidateMidKey]; |
NSString *sdp = dictionary[kRTCICECandidateSdpKey]; |
NSNumber *num = dictionary[kRTCICECandidateMLineIndexKey]; |
NSInteger mLineIndex = [num integerValue]; |
- return [[RTCICECandidate alloc] initWithMid:mid index:mLineIndex sdp:sdp]; |
+ return [[RTCIceCandidate alloc] initWithSdp:sdp |
+ sdpMLineIndex:mLineIndex |
+ sdpMid:mid]; |
} |
- (NSData *)JSONData { |