ARDJoinResponse.h 1.1 KB

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