Svk Repository Impl
Implementation of SvkRepository responsible for handling data operations related to the application.
Functions
Authenticates a user using the provided authentication token.
Deletes the active transport from the local database.
Deletes the image with the specified imageUuid from the local database.
Marks the active transport as finished in the local database.
Finishes a transport with the specified routeNumber in the local database.
Retrieves the active Transport from the local database.
Retrieves a local user from the database using the specified email.
Inserts a Cargo into the local database.
Inserts an image with the specified imageUuid, userId, routeNumber, and localUri into the local database.
Inserts a locally authenticated user into the local database.
Inserts a Transport into the local database.
Updates an existing transport on the server.
Posts a transport to the server.
Initiates the synchronization of transports using a background worker.
Updates the cargo number in the local database from oldCargoNumber to newCargoNumber.
Updates the local database entry for the given Transport.