virtual-alexa icon indicating copy to clipboard operation
virtual-alexa copied to clipboard

Add APL_USER_EVENT type request and require session if request type is it

Open ysak-y opened this issue 2 years ago • 0 comments

What

Add Alexa.Presentation.APL.UserEvent type request and require session object if request type is it.

Why

Alexa.Presentation.APL.UserEvent type request is the kind of request that is called from SendEvent command of APL.

https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-interface.html#userevent-request https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-standard-commands.html#sendevent-command

Sometimes I want to mock this type input but can't because VirtualAlexa doesn't know it. More specifically, Session object is needed to mock this request, but doesn't include because requiresSession object doesn't return true if Alexa.Presentation.APL.UserEvent.

So I want to add Alexa.Presentation.APL.UserEvent and add session object if this type of request coming.

How

Add Alexa.Presentation.APL.UserEvent type request to RequestType class by APL_USER_EVENT name. and return true if APL_USER_EVENT type request in requiresSession

ysak-y avatar Oct 04 '21 14:10 ysak-y