mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can join & leave the call
This commit is contained in:
15
lib/helpers/calls_helper.dart
Normal file
15
lib/helpers/calls_helper.dart
Normal file
@ -0,0 +1,15 @@
|
||||
import 'package:comunic/helpers/websocket_helper.dart';
|
||||
|
||||
/// Calls helper
|
||||
///
|
||||
/// @author Pierre Hubert
|
||||
|
||||
class CallsHelper {
|
||||
/// Join a call
|
||||
static Future<void> join(int convID) async =>
|
||||
ws("calls/join", {"convID": convID});
|
||||
|
||||
/// Leave a call
|
||||
static Future<void> leave(int convID) async =>
|
||||
ws("calls/leave", {"convID": convID});
|
||||
}
|
Reference in New Issue
Block a user