Created
April 11, 2021 16:34
-
-
Save kinisoftware/798146fbb23404757aa67ec2067a4bb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NextAndPreviousIntentHandler : RequestHandler { | |
override fun canHandle(input: HandlerInput) = input.matches( | |
Predicates.intentName("AMAZON.NextIntent") | |
.or(Predicates.intentName("AMAZON.PreviousIntent")) | |
) | |
override fun handle(input: HandlerInput) = input.responseBuilder | |
.withSpeech(Translations.getMessage(input.getLanguage(), Translations.TranslationKey.NO_FEATURE)) | |
.addAudioPlayerStopDirective() | |
.withShouldEndSession(true) | |
.build() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment