travello-gmbh / amazon-alexa-skill-library

DEPRECATED PHP Library for Amazon Alexa Skills
12 stars 1 forks source link

Add Intent classes #4

Closed RalfEggert closed 7 years ago

RalfEggert commented 7 years ago

Currently, all intents are tightly fixed to the TravelloAlexaLibrary\Application\AbstractAlexaApplication class. The idea behind this issue is to create single classes for each intent. Intent objects should habe access to the TravelloAlexaLibrary\Request\AlexaRequest and TravelloAlexaLibrary\Response\AlexaResponse objects and manipulate the Alexa response by changing its OutputSpeech, Card, Session Attributes, and so on.

The need to extend the AbstractAlexaApplication class to implement the handleIntentRequest() method in each application should be removed. The handleIntentRequest() should handle the intent requests automatically without the need to add each intent into a case condition.

RalfEggert commented 7 years ago

Closed by PR #17