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 typedef NS_ENUM(NSInteger, ARDJoinResultType) { | |
14 kARDJoinResultTypeUnknown, | |
15 kARDJoinResultTypeSuccess, | |
16 kARDJoinResultTypeFull | |
17 }; | |
18 | |
19 // Result of joining a room on the room server. | |
20 @interface ARDJoinResponse : NSObject | |
21 | |
22 @property(nonatomic, readonly) ARDJoinResultType result; | |
23 @property(nonatomic, readonly) BOOL isInitiator; | |
24 @property(nonatomic, readonly) NSString *roomId; | |
25 @property(nonatomic, readonly) NSString *clientId; | |
26 @property(nonatomic, readonly) NSArray *messages; | |
27 @property(nonatomic, readonly) NSURL *webSocketURL; | |
28 @property(nonatomic, readonly) NSURL *webSocketRestURL; | |
29 | |
30 + (ARDJoinResponse *)responseFromJSONData:(NSData *)data; | |
31 | |
32 @end | |
OLD | NEW |