Valetudo/backend/lib/core/capabilities/GoToLocationCapability.js

26 lines
643 B
JavaScript

const Capability = require("./Capability");
const NotImplementedError = require("../NotImplementedError");
/**
* @template {import("../ValetudoRobot")} T
* @extends Capability<T>
*/
class GoToLocationCapability extends Capability {
/**
* @abstract
* @param {import("../../entities/core/ValetudoGoToLocation")} valetudoGoToLocation
* @returns {Promise<void>}
*/
async goTo(valetudoGoToLocation) {
throw new NotImplementedError();
}
getType() {
return GoToLocationCapability.TYPE;
}
}
GoToLocationCapability.TYPE = "GoToLocationCapability";
module.exports = GoToLocationCapability;