@testwizard/commands-mobile
Version:
22 lines (16 loc) • 599 B
JavaScript
;
const Commands = require('@testwizard/commands-core');
const Result = require('./QueryAppStateResult');
class QueryAppStateCommand extends Commands.CommandBase {
constructor(testObject) {
super(testObject, 'Mobile.QueryAppState');
}
async execute(appId) {
const requestObj = appId === undefined
? []
: [appId];
const json = await this.executeCommand(requestObj);
return new Result(json, 'queryAppState was successful', 'queryAppState failed');
}
}
module.exports = QueryAppStateCommand;