Builds mock Alexa.Presentation.APL.UserEvent
type request.
RequestEnvelope object that represents Alexa.Presentation.APL.UserEvent
type request with arguments
Builds mock Connections.Response
type request.
RequestEnvelope object that represents Connections.Response
type request with arguments
Returns internal request object of SkillRequestFactory
.
This method would be useful if you want to generate custom request object with withSession()
and withRequest()
methods
request object with values set by withSession()
and withRequest()
methods
Builds mock IntentRequest
type request.
intent name
slot values
RequestEnvelope object that represents IntentRequest
type request with intentName and slots
Builds mock LaunchRequest
type request.
RequestEnvelope object that represents LaunchRequest
type request
Builds mock SessionEndedRequest
type request.
See https://developer.amazon.com/en-US/docs/alexa/custom-skills/request-types-reference.html#sessionendedrequest-parameters
Reason to end session.
Error object if session is ended by error.
RequestEnvelope object that represents SessionEndedRequest
type request with arguments
Adds request
to _request
internal property. You can take it by using getRequest()
.
Use this method if you want to build your own custom request like following.
This method would be helpful if SkillRequestFactory doens't support to generate the request you want.
const mockRequest = skillRequestFactory
.withRequest(someRequestJson)
.getRequest();
Request object you want to generate by SkillRequestFacotry
SkillRequestFacotry object that has the request object to internal request property.
Adds json object of Session
to internal request object. You can take it by using getRequest()
.
Use this method if you want to build your own custom request like following.
const mockRequest = skillRequestFactory
.withSession()
.withRequest(someRequestJson)
.getRequest();
If you want to customize Session
, you should it throught SkillContext
object.
skillRequestFactory.skillContext = newSkillContext;
const mockRequest = skillRequestFactory
.withSession() // <- This includes session in newSkillContext
.withRequest(someRequestJson)
.getRequest();
SkillRequestFacotry object that has the session object to internal request property.
Generated using TypeDoc
Builder class for generating mock skill request.