forked from eatvio/eatvio_app
27 lines
891 B
Dart
27 lines
891 B
Dart
import 'package:dio/dio.dart';
|
|
import 'package:eatvio_app/features/video_calls/models/video_call_models.dart';
|
|
import 'package:retrofit/retrofit.dart';
|
|
|
|
part 'video_call_service.g.dart';
|
|
|
|
@RestApi()
|
|
abstract class VideoCallService {
|
|
factory VideoCallService(Dio dio, {String baseUrl}) = _VideoCallService;
|
|
|
|
@GET('/api/v2/chat/{conversation}/video-call/token')
|
|
Future<VideoCallTokenResponse> getParticipantToken({
|
|
@Path('conversation') required String conversationUuid,
|
|
});
|
|
|
|
@GET('/api/v2/chat/{conversation}/video-call/admin-token')
|
|
Future<VideoCallAdminTokenResponse> getAdminToken({
|
|
@Path('conversation') required String conversationUuid,
|
|
});
|
|
|
|
@POST('/api/v2/chat/{conversation}/video-call/ended')
|
|
Future<VideoCallEndedResponse> notifyCallEnded({
|
|
@Path('conversation') required String conversationUuid,
|
|
@Body() required Map<String, dynamic> body,
|
|
});
|
|
}
|