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

Private Member Functions

override Future< Either< Failure, SessionModel > > singIn ({ required CredentialsEntity reqEntity, }) async
override Future< Either< Failure, void > > signOut () async
override Future< Either< Failure, SessionModel?> > loadSession () async
override Future< Either< Failure, CredentialsModel?> > loadCredentials () async
override Future< Either< Failure, List< VehicleModel > > > getAvailableVehicles ({required int userId}) async
override Future< Either< Failure, bool > > vehicleCheck ({required VehicleCheckModel vehicleCheckModel}) async
override Future< Either< Failure, bool > > checkBiometricAuthAvailability () async
Future< boolsaveTodoCollectionToLocalDatabase ({ required int userId, required String? type, }) async
Future< boolsaveCompletedCollectionToLocalDatabase ({ required int userId, }) async
Future< boolsavePendingCollectionToLocalDatabase ({ required int userId, }) async
Future< boolsaveThisWeekHistoryToLocalDatabase ({ required int userId, }) async
Future< boolsaveThisMonthHistoryToLocalDatabase ({ required int userId, }) async
Future< boolsaveCollectionCancelationReasonsToLocalDatabase () async
Future< boolsavePartnerPaymentsToLocalDatabase () async
Future< boolsavePartnerContactsToLocalDatabase () async
Future< boolsaveCollectionRatingReasonsToLocalDatabase () async
override Future< Either< Failure, SessionEntity > > fastSingIn ({required CredentialsEntity reqEntity}) async
Future< Either< Failure, SessionEntity > > singIn ({ required CredentialsEntity reqEntity, })
Future< Either< Failure, SessionEntity > > fastSingIn ({ required CredentialsEntity reqEntity, })
Future< Either< Failure, void > > signOut ()
Future< Either< Failure, SessionEntity?> > loadSession ()
Future< Either< Failure, CredentialsEntity?> > loadCredentials ()
Future< Either< Failure, List< VehicleModel > > > getAvailableVehicles ({required int userId})
Future< Either< Failure, bool > > vehicleCheck ({required VehicleCheckModel vehicleCheckModel})
Future< Either< Failure, bool > > checkBiometricAuthAvailability ()

Private Attributes

final _remoteDataSource = sl<AuthenticationRemoteDataSource>()
final _credentialsLocalDataSource = sl<CredentialsLocalDataSource>()
final _checkInOutDataSource = sl<CheckInOutRemoteDatasource>()
final _tokenLocaldataDource = sl<TokenLocalDataSource>()
final _sessionLocalDataSource = sl<SessionLocalDataSource>()
final isar = IsarLocalDatabase.instance

Detailed Description

Definition at line 34 of file authentication_repository_impl.dart.

Member Function Documentation

◆ checkBiometricAuthAvailability() [1/2]

Future< Either< Failure, bool > > AuthenticationRepository::checkBiometricAuthAvailability ( )
private

◆ checkBiometricAuthAvailability() [2/2]

override Future< Either< Failure, bool > > AuthenticationRepository::checkBiometricAuthAvailability ( )
inlineprivate

Definition at line 232 of file authentication_repository_impl.dart.

Here is the call graph for this function:

◆ fastSingIn() [1/2]

Future< Either< Failure, SessionEntity > > AuthenticationRepository::fastSingIn ( { required CredentialsEntity reqEntity, } )
private

◆ fastSingIn() [2/2]

override Future< Either< Failure, SessionEntity > > AuthenticationRepository::fastSingIn ( {required CredentialsEntity reqEntity} )
inlineprivate

Definition at line 404 of file authentication_repository_impl.dart.

◆ getAvailableVehicles() [1/2]

Future< Either< Failure, List< VehicleModel > > > AuthenticationRepository::getAvailableVehicles ( {required int userId} )
private

◆ getAvailableVehicles() [2/2]

override Future< Either< Failure, List< VehicleModel > > > AuthenticationRepository::getAvailableVehicles ( {required int userId} )
inlineprivate

Definition at line 193 of file authentication_repository_impl.dart.

◆ loadCredentials() [1/2]

Future< Either< Failure, CredentialsEntity?> > AuthenticationRepository::loadCredentials ( )
private

◆ loadCredentials() [2/2]

override Future< Either< Failure, CredentialsModel?> > AuthenticationRepository::loadCredentials ( )
inlineprivate

Definition at line 183 of file authentication_repository_impl.dart.

Here is the call graph for this function:

◆ loadSession() [1/2]

Future< Either< Failure, SessionEntity?> > AuthenticationRepository::loadSession ( )
private

◆ loadSession() [2/2]

override Future< Either< Failure, SessionModel?> > AuthenticationRepository::loadSession ( )
inlineprivate

Definition at line 173 of file authentication_repository_impl.dart.

Here is the call graph for this function:

◆ saveCollectionCancelationReasonsToLocalDatabase()

Future< bool > AuthenticationRepository::saveCollectionCancelationReasonsToLocalDatabase ( )
inlineprivate

Definition at line 335 of file authentication_repository_impl.dart.

Here is the call graph for this function:

◆ saveCollectionRatingReasonsToLocalDatabase()

Future< bool > AuthenticationRepository::saveCollectionRatingReasonsToLocalDatabase ( )
inlineprivate

Definition at line 390 of file authentication_repository_impl.dart.

Here is the call graph for this function:

◆ saveCompletedCollectionToLocalDatabase()

Future< bool > AuthenticationRepository::saveCompletedCollectionToLocalDatabase ( { required int userId, } )
inlineprivate

Definition at line 261 of file authentication_repository_impl.dart.

◆ savePartnerContactsToLocalDatabase()

Future< bool > AuthenticationRepository::savePartnerContactsToLocalDatabase ( )
inlineprivate

Definition at line 369 of file authentication_repository_impl.dart.

Here is the call graph for this function:

◆ savePartnerPaymentsToLocalDatabase()

Future< bool > AuthenticationRepository::savePartnerPaymentsToLocalDatabase ( )
inlineprivate

Definition at line 348 of file authentication_repository_impl.dart.

Here is the call graph for this function:

◆ savePendingCollectionToLocalDatabase()

Future< bool > AuthenticationRepository::savePendingCollectionToLocalDatabase ( { required int userId, } )
inlineprivate

Definition at line 280 of file authentication_repository_impl.dart.

◆ saveThisMonthHistoryToLocalDatabase()

Future< bool > AuthenticationRepository::saveThisMonthHistoryToLocalDatabase ( { required int userId, } )
inlineprivate

Definition at line 317 of file authentication_repository_impl.dart.

◆ saveThisWeekHistoryToLocalDatabase()

Future< bool > AuthenticationRepository::saveThisWeekHistoryToLocalDatabase ( { required int userId, } )
inlineprivate

Definition at line 299 of file authentication_repository_impl.dart.

◆ saveTodoCollectionToLocalDatabase()

Future< bool > AuthenticationRepository::saveTodoCollectionToLocalDatabase ( { required int userId, required String? type, } )
inlineprivate

Definition at line 241 of file authentication_repository_impl.dart.

◆ signOut() [1/2]

Future< Either< Failure, void > > AuthenticationRepository::signOut ( )
private

◆ signOut() [2/2]

override Future< Either< Failure, void > > AuthenticationRepository::signOut ( )
inlineprivate

Definition at line 153 of file authentication_repository_impl.dart.

Here is the call graph for this function:

◆ singIn() [1/2]

Future< Either< Failure, SessionEntity > > AuthenticationRepository::singIn ( { required CredentialsEntity reqEntity, } )
private

◆ singIn() [2/2]

override Future< Either< Failure, SessionModel > > AuthenticationRepository::singIn ( { required CredentialsEntity reqEntity, } )
inlineprivate

Definition at line 43 of file authentication_repository_impl.dart.

◆ vehicleCheck() [1/2]

Future< Either< Failure, bool > > AuthenticationRepository::vehicleCheck ( {required VehicleCheckModel vehicleCheckModel} )
private

◆ vehicleCheck() [2/2]

override Future< Either< Failure, bool > > AuthenticationRepository::vehicleCheck ( {required VehicleCheckModel vehicleCheckModel} )
inlineprivate

Definition at line 203 of file authentication_repository_impl.dart.

Member Data Documentation

◆ _checkInOutDataSource

final AuthenticationRepository::_checkInOutDataSource = sl<CheckInOutRemoteDatasource>()
private

Definition at line 37 of file authentication_repository_impl.dart.

◆ _credentialsLocalDataSource

final AuthenticationRepository::_credentialsLocalDataSource = sl<CredentialsLocalDataSource>()
private

Definition at line 36 of file authentication_repository_impl.dart.

◆ _remoteDataSource

final AuthenticationRepository::_remoteDataSource = sl<AuthenticationRemoteDataSource>()
private

Definition at line 35 of file authentication_repository_impl.dart.

◆ _sessionLocalDataSource

final AuthenticationRepository::_sessionLocalDataSource = sl<SessionLocalDataSource>()
private

Definition at line 39 of file authentication_repository_impl.dart.

◆ _tokenLocaldataDource

final AuthenticationRepository::_tokenLocaldataDource = sl<TokenLocalDataSource>()
private

Definition at line 38 of file authentication_repository_impl.dart.

◆ isar

final AuthenticationRepository::isar = IsarLocalDatabase.instance
private

Definition at line 40 of file authentication_repository_impl.dart.


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