Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ysak-y
Copy link

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

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
Copy link

@cfarmer-fearless cfarmer-fearless left a comment

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