Class SwitchClient

A gRPC-web client for the Switch component.

Implements

Constructors

Properties

callOptions: CallOptions = ...
name: string

The name of the resource.

Methods

  • Send/Receive arbitrary commands to the resource.

    Parameters

    • command: Struct

      The command to execute.

    • callOptions: CallOptions = ...

    Returns Promise<JsonValue>

  • Get the total number of positions available on the switch.

    Parameters

    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<number>

  • Get the current position of the switch.

    Parameters

    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<number>

  • Set the switch to a specific position.

    Parameters

    • position: number
    • extra: {} = {}
    • callOptions: CallOptions = ...

    Returns Promise<void>

MMNEPVFCICPMFPCPTTAAATR