@testwizard/commands-video
Version:
22 lines (16 loc) • 621 B
JavaScript
;
const Commands = require('@testwizard/commands-core');
const Result = Commands.ResultForOk;
class ClearOnScreenDisplayCommand extends Commands.CommandBase {
constructor(testObject) {
super(testObject, 'ClearOnScreenDisplay');
}
async execute(osdArea) {
const requestObj = [];
if (osdArea !== undefined)
requestObj.push(osdArea);
const json = await this.executeCommand(requestObj);
return new Result(json, 'clearOnScreenDisplay was successful', 'clearOnScreenDisplay failed');
}
}
module.exports = ClearOnScreenDisplayCommand;