Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandResultListener

name

CommandResultListener

Hierarchy

Index

Methods

onCommandError

  • Callback invoked when a command failed or is an unknown state.

    Parameters

    • subject: string

      The subject of the command.

    • commandErrorEvent: CommandErrorEvent

      Information about the command error.

    Returns void

Optional onCommandOk

  • onCommandOk(subject: string): void
  • Callback invoked when a command was successful.

    Parameters

    • subject: string

      The subject of the command.

    Returns void

Optional onCommandResult

  • For a command that returns a result, this method will be called in addition to the onCommandOk callback

    Parameters

    • subject: string

      The subject of the command.

    • commandEvent: CommandResultEvent

      The command result.

    Returns void

Generated using TypeDoc