Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 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 | @class ARDJoinResponse; |
| 14 | @class ARDMessageResponse; |
| 15 | @class ARDSignalingMessage; |
| 16 | |
| 17 | @protocol ARDRoomServerClient <NSObject> |
| 18 | |
| 19 | - (void)joinRoomWithRoomId:(NSString *)roomId |
haysc | 913e645 | 2015-10-02 11:44:03 -0700 | [diff] [blame] | 20 | isLoopback:(BOOL)isLoopback |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame^] | 21 | completionHandler:(void (^)(ARDJoinResponse *response, NSError *error))completionHandler; |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 22 | |
| 23 | - (void)sendMessage:(ARDSignalingMessage *)message |
| 24 | forRoomId:(NSString *)roomId |
| 25 | clientId:(NSString *)clientId |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame^] | 26 | completionHandler:(void (^)(ARDMessageResponse *response, NSError *error))completionHandler; |
Donald E Curtis | a873644 | 2015-08-05 15:48:13 -0700 | [diff] [blame] | 27 | |
| 28 | - (void)leaveRoomWithRoomId:(NSString *)roomId |
| 29 | clientId:(NSString *)clientId |
| 30 | completionHandler:(void (^)(NSError *error))completionHandler; |
| 31 | |
| 32 | @end |