Skip to content

Instantly share code, notes, and snippets.

@kinisoftware
Created April 18, 2021 17:18
Show Gist options
  • Select an option

  • Save kinisoftware/5bdba4879df1d7a92f4b21ca7f528962 to your computer and use it in GitHub Desktop.

Select an option

Save kinisoftware/5bdba4879df1d7a92f4b21ca7f528962 to your computer and use it in GitHub Desktop.

Revisions

  1. Joaquin Engelmo Moriche created this gist Apr 18, 2021.
    9 changes: 9 additions & 0 deletions NextCommandIssuedRequest.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    class NextIntentHandler : RequestHandler {

    override fun canHandle(input: HandlerInput) = input.matches(
    intentName("AMAZON.NextIntent")
    .or(Predicates.requestType(NextCommandIssuedRequest::class.java))
    )

    override fun handle(input: HandlerInput): Optional<Response> {...}
    }