Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
ElearningV2Repository Class Reference
Collaboration diagram for ElearningV2Repository:

Private Member Functions

 ElearningV2RepositoryImpl ({required this.localDataSource})
override Future< Either< Failure, List< CourseEntity > > > getCourses () async
override Future< Either< Failure, CourseEntity > > getCourseDetails (int courseId) async
override Future< Either< Failure, List< QcmEntity > > > getQcmForCourse (int courseId) async
override Future< Either< Failure, String > > getPdfPathForCourse (int courseId) async
override Future< Either< Failure, bool > > updateCourseProgress (int courseId, double progress) async
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, 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, bool > > updateCourseProgress (int courseId, double progress)
 Updates the progress for a specific course.

Private Attributes

final ElearningV2LocalDataSource localDataSource

Detailed Description

Definition at line 10 of file elearning_v2_repository_impl.dart.

Member Function Documentation

◆ ElearningV2RepositoryImpl()

ElearningV2Repository::ElearningV2RepositoryImpl ( {required this.localDataSource} )
private

◆ getCourseDetails() [1/2]

Future< Either< Failure, CourseEntity > > ElearningV2Repository::getCourseDetails ( int courseId)
private

Gets detailed information about a specific course.

◆ getCourseDetails() [2/2]

override Future< Either< Failure, CourseEntity > > ElearningV2Repository::getCourseDetails ( int courseId)
inlineprivate

Definition at line 26 of file elearning_v2_repository_impl.dart.

Here is the call graph for this function:

◆ getCourses() [1/2]

Future< Either< Failure, List< CourseEntity > > > ElearningV2Repository::getCourses ( )
private

Gets a list of all available courses.

◆ getCourses() [2/2]

override Future< Either< Failure, List< CourseEntity > > > ElearningV2Repository::getCourses ( )
inlineprivate

Definition at line 16 of file elearning_v2_repository_impl.dart.

Here is the call graph for this function:

◆ getPdfPathForCourse() [1/2]

Future< Either< Failure, String > > ElearningV2Repository::getPdfPathForCourse ( int courseId)
private

Gets the PDF path for a specific course.

◆ getPdfPathForCourse() [2/2]

override Future< Either< Failure, String > > ElearningV2Repository::getPdfPathForCourse ( int courseId)
inlineprivate

Definition at line 46 of file elearning_v2_repository_impl.dart.

Here is the call graph for this function:

◆ getQcmForCourse() [1/2]

Future< Either< Failure, List< QcmEntity > > > ElearningV2Repository::getQcmForCourse ( int courseId)
private

Gets QCM questions for a specific course.

◆ getQcmForCourse() [2/2]

override Future< Either< Failure, List< QcmEntity > > > ElearningV2Repository::getQcmForCourse ( int courseId)
inlineprivate

Definition at line 36 of file elearning_v2_repository_impl.dart.

Here is the call graph for this function:

◆ updateCourseProgress() [1/2]

Future< Either< Failure, bool > > ElearningV2Repository::updateCourseProgress ( int courseId,
double progress )
private

Updates the progress for a specific course.

◆ updateCourseProgress() [2/2]

override Future< Either< Failure, bool > > ElearningV2Repository::updateCourseProgress ( int courseId,
double progress )
inlineprivate

Definition at line 56 of file elearning_v2_repository_impl.dart.

Here is the call graph for this function:

Member Data Documentation

◆ localDataSource

final ElearningV2LocalDataSource ElearningV2Repository::localDataSource
private

Definition at line 11 of file elearning_v2_repository_impl.dart.


The documentation for this class was generated from the following files: