ARDRoomServerClient.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. @class ARDJoinResponse;
  12. @class ARDMessageResponse;
  13. @class ARDSignalingMessage;
  14. @protocol ARDRoomServerClient <NSObject>
  15. - (void)joinRoomWithRoomId:(NSString *)roomId
  16. isLoopback:(BOOL)isLoopback
  17. completionHandler:(void (^)(ARDJoinResponse *response, NSError *error))completionHandler;
  18. - (void)sendMessage:(ARDSignalingMessage *)message
  19. forRoomId:(NSString *)roomId
  20. clientId:(NSString *)clientId
  21. completionHandler:(void (^)(ARDMessageResponse *response, NSError *error))completionHandler;
  22. - (void)leaveRoomWithRoomId:(NSString *)roomId
  23. clientId:(NSString *)clientId
  24. completionHandler:(void (^)(NSError *error))completionHandler;
  25. @end