BeMapVehicleRepository
Instance of VehicleRepository that uses BeMap API for interacting with online vehicle database and stores the information locally using Room library.
Parameters
application context instance needed by the repository to interact with Android environment
login used to access BeMap API
password used access BeMAP API
base endpoint of the BeMAP APi
Properties
Functions
Clears vehicle manufacturers from local database
Clears vehicle models of specified vehicleModelId from local database
Clears vehicle models of specified manufacturer from local database
Gets full vehicle model data (including vehicle datasheet) of specified id from BeMap and saves it in local database.
Gets manufacturers data from BeMap API if data is not already in local database
Gets vehicle models data of specified manufacturer from BeMap and saves it in local database.
Gets all manufacturers from local database
Gets all vehicle models of specified manufacturer.
Gets a vehicle model by specifying its id.
Queries for information (and updates) regarding specific vehicle model