Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
ElearningV2LocalDataSource Class Reference

Private Member Functions

Future< List< CourseEntity > > getCourses ()
 Gets a list of all available courses.
Future< CourseEntitygetCourseDetails (int courseId)
 Gets detailed information about a specific course.
Future< List< QcmEntity > > getQcmForCourse (int courseId)
 Gets QCM questions for a specific course.
Future< StringgetPdfPathForCourse (int courseId)
 Gets the PDF path for a specific course.
Future< boolupdateCourseProgress (int courseId, double progress)
 Updates the progress for a specific course.
 ElearningV2LocalDataSourceImpl ({required this.sharedPreferences})
override Future< List< CourseEntity > > getCourses () async
override Future< CourseEntitygetCourseDetails (int courseId) async
override Future< List< QcmEntity > > getQcmForCourse (int courseId) async
override Future< StringgetPdfPathForCourse (int courseId) async
override Future< boolupdateCourseProgress (int courseId, double progress) async

Private Attributes

final SharedPreferences sharedPreferences

Static Private Attributes

static const String _progressKeyPrefix = 'course_progress_'

Detailed Description

Definition at line 4 of file elearning_v2_local_data_source.dart.

Member Function Documentation

◆ ElearningV2LocalDataSourceImpl()

ElearningV2LocalDataSource::ElearningV2LocalDataSourceImpl ( {required this.sharedPreferences} )
private

◆ getCourseDetails() [1/2]

Future< CourseEntity > ElearningV2LocalDataSource::getCourseDetails ( int courseId)
private

Gets detailed information about a specific course.

◆ getCourseDetails() [2/2]

override Future< CourseEntity > ElearningV2LocalDataSource::getCourseDetails ( int courseId)
inlineprivate

Definition at line 54 of file elearning_v2_local_data_source_impl.dart.

◆ getCourses() [1/2]

Future< List< CourseEntity > > ElearningV2LocalDataSource::getCourses ( )
private

Gets a list of all available courses.

◆ getCourses() [2/2]

override Future< List< CourseEntity > > ElearningV2LocalDataSource::getCourses ( )
inlineprivate

Definition at line 18 of file elearning_v2_local_data_source_impl.dart.

◆ getPdfPathForCourse() [1/2]

Future< String > ElearningV2LocalDataSource::getPdfPathForCourse ( int courseId)
private

Gets the PDF path for a specific course.

◆ getPdfPathForCourse() [2/2]

override Future< String > ElearningV2LocalDataSource::getPdfPathForCourse ( int courseId)
inlineprivate

Definition at line 112 of file elearning_v2_local_data_source_impl.dart.

◆ getQcmForCourse() [1/2]

Future< List< QcmEntity > > ElearningV2LocalDataSource::getQcmForCourse ( int courseId)
private

Gets QCM questions for a specific course.

◆ getQcmForCourse() [2/2]

override Future< List< QcmEntity > > ElearningV2LocalDataSource::getQcmForCourse ( int courseId)
inlineprivate

Definition at line 89 of file elearning_v2_local_data_source_impl.dart.

◆ updateCourseProgress() [1/2]

Future< bool > ElearningV2LocalDataSource::updateCourseProgress ( int courseId,
double progress )
private

Updates the progress for a specific course.

◆ updateCourseProgress() [2/2]

override Future< bool > ElearningV2LocalDataSource::updateCourseProgress ( int courseId,
double progress )
inlineprivate

Definition at line 136 of file elearning_v2_local_data_source_impl.dart.

Member Data Documentation

◆ _progressKeyPrefix

const String ElearningV2LocalDataSource::_progressKeyPrefix = 'course_progress_'
staticprivate

Definition at line 13 of file elearning_v2_local_data_source_impl.dart.

◆ sharedPreferences

final SharedPreferences ElearningV2LocalDataSource::sharedPreferences
private

Definition at line 12 of file elearning_v2_local_data_source_impl.dart.


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