This commit adds a convenient way to add skill connections, that have not already been covered by the multiple Output classes already provided. This is especially helpful, if you want to target a specific Task (e. g. in a specific skill), as the already provided output classes only covered predefined tasks.
The main new class added here is the StartConnectionOutput, which is a the most basic StartConnection Template, that should cover all types of StartConnection Directives the developer needs. Therefore I also refactored the already existing Outputs to use this more generic Output, to make these classes a bit more concise.
I tested the new class heavliy as well as made sure, that the refactored classes still work the same. In my tests, everything worked perfectly.
I also added documentation with links to the alexa developer documentation to explain how to use this new feature!
Types of Changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] My code follows the code style of this project
[x] My change requires a change to the documentation
In case this feature is interesting, but the refactoring of the old classes is not desired, I could also just revert the refactoring part and leave those classes as they were!
Proposed Changes
This commit adds a convenient way to add skill connections, that have not already been covered by the multiple Output classes already provided. This is especially helpful, if you want to target a specific Task (e. g. in a specific skill), as the already provided output classes only covered predefined tasks.
The main new class added here is the
StartConnectionOutput
, which is a the most basic StartConnection Template, that should cover all types of StartConnection Directives the developer needs. Therefore I also refactored the already existing Outputs to use this more generic Output, to make these classes a bit more concise.I tested the new class heavliy as well as made sure, that the refactored classes still work the same. In my tests, everything worked perfectly.
I also added documentation with links to the alexa developer documentation to explain how to use this new feature!
Types of Changes
Checklist