Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
elearning_v2_repository.dart
Go to the documentation of this file.
1import 'package:dartz/dartz.dart';
2
3import '../../../../core/error/failures.dart';
4import '../entities/course_entity.dart';
5import '../entities/qcm_entity.dart';
6
7abstract class ElearningV2Repository {
9 Future<Either<Failure, List<CourseEntity>>> getCourses();
10
12 Future<Either<Failure, CourseEntity>> getCourseDetails(int courseId);
13
15 Future<Either<Failure, List<QcmEntity>>> getQcmForCourse(int courseId);
16
18 Future<Either<Failure, String>> getPdfPathForCourse(int courseId);
19
21 Future<Either<Failure, bool>> updateCourseProgress(int courseId, double progress);
22}
Future< Either< Failure, List< QcmEntity > > > getQcmForCourse(int courseId)
Gets QCM questions for a specific course.
Future< Either< Failure, String > > getPdfPathForCourse(int courseId)
Gets the PDF path for a specific course.
Future< Either< Failure, List< CourseEntity > > > getCourses()
Gets a list of all available courses.
Future< Either< Failure, CourseEntity > > getCourseDetails(int courseId)
Gets detailed information about a specific course.
Future< Either< Failure, bool > > updateCourseProgress(int courseId, double progress)
Updates the progress for a specific course.
class GetPdfPathUseCase implements UseCase< String, PdfParams > courseId
final double progress