Skip to content

Commit

Permalink
feat: remote command
Browse files Browse the repository at this point in the history
  • Loading branch information
Balte de Wit committed Sep 21, 2019
1 parent ed33dc5 commit 7d8b254
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
23 changes: 23 additions & 0 deletions src/commands/remote.ts
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 7d8b254

Please sign in to comment.