How to use the ask-sdk-runtime.GenericRequestDispatcher function in ask-sdk-runtime

To help you get started, we’ve selected a few ask-sdk-runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexa / alexa-skills-kit-sdk-for-nodejs / ask-sdk-core / lib / skill / CustomSkill.ts View on Github external
constructor(skillConfiguration : CustomSkillConfiguration) {
        this.persistenceAdapter = skillConfiguration.persistenceAdapter;
        this.apiClient = skillConfiguration.apiClient;
        this.customUserAgent = skillConfiguration.customUserAgent;
        this.skillId = skillConfiguration.skillId;

        this.requestDispatcher = new GenericRequestDispatcher({
            requestMappers : skillConfiguration.requestMappers,
            handlerAdapters : skillConfiguration.handlerAdapters,
            errorMapper : skillConfiguration.errorMapper,
            requestInterceptors : skillConfiguration.requestInterceptors,
            responseInterceptors : skillConfiguration.responseInterceptors,
        });
    }

ask-sdk-runtime

Base runtime package for Alexa Skills Kit SDK

Apache-2.0
Latest version published 2 years ago

Package Health Score

61 / 100
Full package analysis