UNPKG

aes70

Version:

A controller library for the AES70 protocol.

38 lines (33 loc) 1.02 kB
import { IOcaMuteState, OcaMuteState } from '../../types/OcaMuteState.js'; import { PropertyEvent } from '../property_event.js'; import { RemoteDevice } from '../remote_device.js'; import { OcaActuator } from './OcaActuator.js'; /** * Signal mute. * @extends OcaActuator * @class OcaMute */ export declare class OcaMute extends OcaActuator { /** * This event is emitted whenever State changes. */ OnStateChanged: PropertyEvent<OcaMuteState>; constructor(objectNumber: number, device: RemoteDevice); /** * Gets the current mute state (i.e. value of the **State** property). * * @method OcaMute#GetState * @returns {Promise<OcaMuteState>} * A promise which resolves to a single value of type :class:`OcaMuteState`. */ GetState(): Promise<OcaMuteState>; /** * Sets the mute state (i.e. value of the State property). * * @method OcaMute#SetState * @param {IOcaMuteState} state * * @returns {Promise<void>} */ SetState(state: IOcaMuteState): Promise<void>; }