-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(meeting): map webrtc manager & socket handler
- Loading branch information
1 parent
5e44b61
commit 1535b64
Showing
13 changed files
with
469 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Package imports: | ||
import 'package:dartz/dartz.dart'; | ||
import 'package:equatable/equatable.dart'; | ||
import 'package:injectable/injectable.dart'; | ||
|
||
// Project imports: | ||
import 'package:waterbus/core/error/failures.dart'; | ||
import 'package:waterbus/core/usecase/usecase.dart'; | ||
import 'package:waterbus/features/meeting/domain/entities/participant.dart'; | ||
import 'package:waterbus/features/meeting/domain/repositories/meeting_repository.dart'; | ||
|
||
@injectable | ||
class GetParticipant implements UseCase<Participant, GetPariticipantParams> { | ||
final MeetingRepository repository; | ||
|
||
GetParticipant(this.repository); | ||
|
||
@override | ||
Future<Either<Failure, Participant>> call( | ||
GetPariticipantParams params, | ||
) async { | ||
return await repository.getParticipantById(params.participantId); | ||
} | ||
} | ||
|
||
class GetPariticipantParams extends Equatable { | ||
final int participantId; | ||
|
||
const GetPariticipantParams({required this.participantId}); | ||
|
||
@override | ||
List<Object> get props => [participantId]; | ||
} |
Oops, something went wrong.