Skip to content

Commit

Permalink
feat: slot select command
Browse files Browse the repository at this point in the history
  • Loading branch information
Balte de Wit committed Jul 29, 2019
1 parent 6fd124c commit c70c509
Show file tree
Hide file tree
Showing 2 changed files with 20 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 @@ -6,5 +6,6 @@ export * from './format'
export * from './notify'
export * from './record'
export * from './slotInfo'
export * from './slotSelect'
export * from './stop'
export * from './transportInfo'
19 changes: 19 additions & 0 deletions src/commands/slotSelect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { AbstractCommandNoResponse } from './abstractCommand'
import { NamedMessage } from '../message'

export class SlotSelectCommand extends AbstractCommandNoResponse {
slotId?: string

serialize () {
const res: NamedMessage = {
name: 'slot select',
params: {}
}

if (this.slotId) {
res.params['slot id'] = this.slotId
}

return res
}
}

0 comments on commit c70c509

Please sign in to comment.