OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 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 "ARDJoinResponse+Internal.h" | 11 #import "ARDJoinResponse+Internal.h" |
12 | 12 |
13 #import "ARDSignalingMessage.h" | 13 #import "ARDSignalingMessage.h" |
14 #import "ARDUtilities.h" | 14 #import "ARDUtilities.h" |
15 #import "RTCICEServer+JSON.h" | 15 #import "RTCIceServer+JSON.h" |
16 | 16 |
17 static NSString const *kARDJoinResultKey = @"result"; | 17 static NSString const *kARDJoinResultKey = @"result"; |
18 static NSString const *kARDJoinResultParamsKey = @"params"; | 18 static NSString const *kARDJoinResultParamsKey = @"params"; |
19 static NSString const *kARDJoinInitiatorKey = @"is_initiator"; | 19 static NSString const *kARDJoinInitiatorKey = @"is_initiator"; |
20 static NSString const *kARDJoinRoomIdKey = @"room_id"; | 20 static NSString const *kARDJoinRoomIdKey = @"room_id"; |
21 static NSString const *kARDJoinClientIdKey = @"client_id"; | 21 static NSString const *kARDJoinClientIdKey = @"client_id"; |
22 static NSString const *kARDJoinMessagesKey = @"messages"; | 22 static NSString const *kARDJoinMessagesKey = @"messages"; |
23 static NSString const *kARDJoinWebSocketURLKey = @"wss_url"; | 23 static NSString const *kARDJoinWebSocketURLKey = @"wss_url"; |
24 static NSString const *kARDJoinWebSocketRestURLKey = @"wss_post_url"; | 24 static NSString const *kARDJoinWebSocketRestURLKey = @"wss_post_url"; |
25 | 25 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 ARDJoinResultType result = kARDJoinResultTypeUnknown; | 73 ARDJoinResultType result = kARDJoinResultTypeUnknown; |
74 if ([resultString isEqualToString:@"SUCCESS"]) { | 74 if ([resultString isEqualToString:@"SUCCESS"]) { |
75 result = kARDJoinResultTypeSuccess; | 75 result = kARDJoinResultTypeSuccess; |
76 } else if ([resultString isEqualToString:@"FULL"]) { | 76 } else if ([resultString isEqualToString:@"FULL"]) { |
77 result = kARDJoinResultTypeFull; | 77 result = kARDJoinResultTypeFull; |
78 } | 78 } |
79 return result; | 79 return result; |
80 } | 80 } |
81 | 81 |
82 @end | 82 @end |
OLD | NEW |