mirror of https://github.com/Hypfer/Valetudo.git
29 lines
705 B
JavaScript
29 lines
705 B
JavaScript
const NotImplementedError = require("../NotImplementedError");
|
|
const PresetSelectionCapability = require("./PresetSelectionCapability");
|
|
|
|
/**
|
|
* @template {import("../ValetudoRobot")} T
|
|
* @extends PresetSelectionCapability<T>
|
|
*/
|
|
class WaterUsageControlCapability extends PresetSelectionCapability {
|
|
/**
|
|
* @abstract
|
|
* @param {string} preset
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async selectPreset(preset) {
|
|
throw new NotImplementedError();
|
|
}
|
|
|
|
/**
|
|
* @returns {string}
|
|
*/
|
|
getType() {
|
|
return WaterUsageControlCapability.TYPE;
|
|
}
|
|
}
|
|
|
|
WaterUsageControlCapability.TYPE = "WaterUsageControlCapability";
|
|
|
|
module.exports = WaterUsageControlCapability;
|