mirror of https://github.com/Hypfer/Valetudo.git
26 lines
643 B
JavaScript
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;
|