Skip to content

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

Open
ysak-y wants to merge 1 commit into
bespoken:masterfrom
ysak-y:add_apl_user_event_type
Open

Add APL_USER_EVENT type request and require session if request type is it#138
ysak-y wants to merge 1 commit into
bespoken:masterfrom
ysak-y:add_apl_user_event_type

Conversation

@ysak-y

@ysak-y ysak-y commented Oct 4, 2021

Copy link
Copy Markdown

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

type request
and require session
if request type is it

@cfarmer-fearless cfarmer-fearless left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this because I would like to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants