UNPKG

matterbridge-roborock-vacuum-plugin

Version:
29 lines 1.06 kB
import { MopRoute, MopWaterFlow, VacuumSuctionPower } from '../enums/index.js'; export class CleanModeSetting { suctionPower; waterFlow; distance_off; mopRoute; sequenceType; constructor(suctionPower, waterFlow, distance_off, mopRoute, sequenceType) { this.suctionPower = suctionPower; this.waterFlow = waterFlow; this.distance_off = distance_off; this.mopRoute = mopRoute; this.sequenceType = sequenceType; } get hasFullSettings() { return this.suctionPower !== undefined && this.waterFlow !== undefined && this.mopRoute !== undefined; } get isSmartMode() { return (this.suctionPower === VacuumSuctionPower.Smart || this.waterFlow === MopWaterFlow.Smart || this.mopRoute === MopRoute.Smart); } get isCustomMode() { return (this.suctionPower === VacuumSuctionPower.Custom || this.waterFlow === MopWaterFlow.Custom || this.mopRoute === MopRoute.Custom); } } //# sourceMappingURL=CleanModeSetting.js.map