mirror of https://github.com/Hypfer/Valetudo.git
25 lines
735 B
JavaScript
25 lines
735 B
JavaScript
const MopDockDryManualTriggerCapability = require("../../../core/capabilities/MopDockDryManualTriggerCapability");
|
|
|
|
/**
|
|
* @extends MopDockDryManualTriggerCapability<import("../RoborockValetudoRobot")>
|
|
*/
|
|
class RoborockMopDockDryManualTriggerCapability extends MopDockDryManualTriggerCapability {
|
|
/**
|
|
* @abstract
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async startDrying() {
|
|
return await this.robot.sendCommand("app_set_dryer_status", { "status": 1 }, {});
|
|
}
|
|
|
|
/**
|
|
* @abstract
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async stopDrying() {
|
|
return await this.robot.sendCommand("app_set_dryer_status", { "status": 0 }, {});
|
|
}
|
|
}
|
|
|
|
module.exports = RoborockMopDockDryManualTriggerCapability;
|