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

Private Member Functions

Future< boolisAllOperationsSynced () async
Future< boolisOperationsSynced (int collectionId) async
Future< CollectionStepgetOperationCurrentStep (int collectionId) async
Future< voidaddPendingOperation ({ required int collectionId, required CollectionStep step, required Map< String, dynamic > data, required int operationOrder, }) async
Future< voidsyncPendingOperations () async
Future< bool_processPendingOperation (PendingCollectionOperationIsarModel operation) async
Future< bool_processStatusUpdate (Map< String, dynamic > data) async
Future< bool_processValidation (Map< String, dynamic > data) async
Future< bool_processInformation (Map< String, dynamic > data) async
Future< bool_processConfirmation (Map< String, dynamic > data) async
Future< bool_processPayment (Map< String, dynamic > data) async
Future< bool_processRating (Map< String, dynamic > data) async

Private Attributes

final _localDatabase = IsarLocalDatabase.instance
final _remoteDataSource = sl<CollectionsRemoteDataSource>()

Detailed Description

Definition at line 14 of file offline_sync_service.dart.

Member Function Documentation

◆ _processConfirmation()

Future< bool > OfflineSyncService::_processConfirmation ( Map< String, dynamic > data)
inlineprivate

Definition at line 196 of file offline_sync_service.dart.

Here is the caller graph for this function:

◆ _processInformation()

Future< bool > OfflineSyncService::_processInformation ( Map< String, dynamic > data)
inlineprivate

Definition at line 185 of file offline_sync_service.dart.

Here is the caller graph for this function:

◆ _processPayment()

Future< bool > OfflineSyncService::_processPayment ( Map< String, dynamic > data)
inlineprivate

Definition at line 207 of file offline_sync_service.dart.

Here is the caller graph for this function:

◆ _processPendingOperation()

Future< bool > OfflineSyncService::_processPendingOperation ( PendingCollectionOperationIsarModel operation)
inlineprivate

Definition at line 137 of file offline_sync_service.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _processRating()

Future< bool > OfflineSyncService::_processRating ( Map< String, dynamic > data)
inlineprivate

Definition at line 218 of file offline_sync_service.dart.

Here is the caller graph for this function:

◆ _processStatusUpdate()

Future< bool > OfflineSyncService::_processStatusUpdate ( Map< String, dynamic > data)
inlineprivate

Definition at line 156 of file offline_sync_service.dart.

Here is the caller graph for this function:

◆ _processValidation()

Future< bool > OfflineSyncService::_processValidation ( Map< String, dynamic > data)
inlineprivate

Definition at line 174 of file offline_sync_service.dart.

Here is the caller graph for this function:

◆ addPendingOperation()

Future< void > OfflineSyncService::addPendingOperation ( { required int collectionId, required CollectionStep step, required Map< String, dynamic > data, required int operationOrder, } )
inlineprivate

Definition at line 54 of file offline_sync_service.dart.

◆ getOperationCurrentStep()

Future< CollectionStep > OfflineSyncService::getOperationCurrentStep ( int collectionId)
inlineprivate

Definition at line 41 of file offline_sync_service.dart.

Here is the call graph for this function:

◆ isAllOperationsSynced()

Future< bool > OfflineSyncService::isAllOperationsSynced ( )
inlineprivate

Definition at line 18 of file offline_sync_service.dart.

Here is the call graph for this function:

◆ isOperationsSynced()

Future< bool > OfflineSyncService::isOperationsSynced ( int collectionId)
inlineprivate

Definition at line 29 of file offline_sync_service.dart.

Here is the call graph for this function:

◆ syncPendingOperations()

Future< void > OfflineSyncService::syncPendingOperations ( )
inlineprivate

Definition at line 94 of file offline_sync_service.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _localDatabase

final OfflineSyncService::_localDatabase = IsarLocalDatabase.instance
private

Definition at line 15 of file offline_sync_service.dart.

◆ _remoteDataSource

final OfflineSyncService::_remoteDataSource = sl<CollectionsRemoteDataSource>()
private

Definition at line 16 of file offline_sync_service.dart.


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