Skip to content

Instantly share code, notes, and snippets.

@kinisoftware
Created February 3, 2020 18:55
Show Gist options
  • Select an option

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

Select an option

Save kinisoftware/bfacf122ee738065fade26bc085c3b66 to your computer and use it in GitHub Desktop.
class SessionEndedRequestHandler : RequestHandler {
override fun canHandle(input: HandlerInput): Boolean {
return input.matches(Predicates.requestType(SessionEndedRequest::class.java))
}
override fun handle(input: HandlerInput): Optional<Response> {
return input.responseBuilder.build()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment