diff --git a/src/commands/index.ts b/src/commands/index.ts index cdc7719..9e128fa 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -9,6 +9,7 @@ export * from './jog' export * from './notify' export * from './play' export * from './record' +export * from './remote' export * from './shuttle' export * from './slotInfo' export * from './slotSelect' diff --git a/src/commands/remote.ts b/src/commands/remote.ts new file mode 100644 index 0000000..475dc05 --- /dev/null +++ b/src/commands/remote.ts @@ -0,0 +1,23 @@ +import { NamedMessage } from '../message' +import { AbstractCommandNoResponse } from './abstractCommand' + +export class RemoteCommand extends AbstractCommandNoResponse { + enable?: boolean + + constructor (enable?: boolean) { + super() + + this.enable = enable + } + + serialize () { + const res: NamedMessage = { + name: 'remote', + params: {} + } + + if (this.enable !== undefined) res.params.enable = this.enable ? 'true' : 'false' + + return res + } +}