mirror of https://github.com/Hypfer/Valetudo.git
43 lines
1.0 KiB
JavaScript
43 lines
1.0 KiB
JavaScript
const Capability = require("./Capability");
|
|
const NotImplementedError = require("../NotImplementedError");
|
|
|
|
/**
|
|
* @template {import("../ValetudoRobot")} T
|
|
* @extends Capability<T>
|
|
*/
|
|
class WifiConfigurationCapability extends Capability {
|
|
/**
|
|
* @abstract
|
|
* @returns {Promise<import("../../entities/core/ValetudoWifiStatus")>}
|
|
*/
|
|
async getWifiStatus() {
|
|
throw new NotImplementedError();
|
|
}
|
|
|
|
/**
|
|
* @abstract
|
|
* @param {import("../../entities/core/ValetudoWifiConfiguration")} wifiConfig
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async setWifiConfiguration(wifiConfig) {
|
|
throw new NotImplementedError();
|
|
}
|
|
|
|
getType() {
|
|
return WifiConfigurationCapability.TYPE;
|
|
}
|
|
|
|
/**
|
|
* @return {{provisionedReconfigurationSupported: boolean}}
|
|
*/
|
|
getProperties() {
|
|
return {
|
|
provisionedReconfigurationSupported: false
|
|
};
|
|
}
|
|
}
|
|
|
|
WifiConfigurationCapability.TYPE = "WifiConfigurationCapability";
|
|
|
|
module.exports = WifiConfigurationCapability;
|