UNPKG

jovo-plugin-class-handler

Version:

Jovo plugin that allows using classes for defining handlers.

53 lines 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jovo_core_1 = require("jovo-core"); /** * BaseHandler, this is just used to provide access to method/properties of the Jovo object via `this`. * All method implementations are simply there to satisfy the inheritance. The correct values are injected during the execution of the @Intent-method. */ class BaseHandler extends jovo_core_1.Jovo { isNewSession() { return false; } hasAudioInterface() { return false; } hasScreenInterface() { return false; } hasVideoInterface() { return false; } getSpeechBuilder() { return; } speechBuilder() { return; } getDeviceId() { return; } getRawText() { return; } getTimestamp() { return; } getLocale() { return; } getType() { return; } getPlatformType() { return ''; } getSelectedElementId() { return; } getAudioData() { return undefined; } } exports.BaseHandler = BaseHandler; //# sourceMappingURL=BaseHandler.js.map