def get_stored_vehicle_data(self): """ Returns the last vehicle data received :return: VehicleDataResponse :rtype: VehicleDataResponse """ data = self._api.get(self.url('/vehicles/{vin}/status')) return VehicleDataResponse(data)
def get_requested_current_vehicle_data(self, request_id: str): """ Returns the vehicle report of the request with the given ID :param request_id: Request ID :return: VehicleDataResponse :rtype: VehicleDataResponse """ data = self._api.get(self.url('/vehicles/{vin}/requests/{request_id}/status', request_id=request_id)) return VehicleDataResponse(data)