public abstract class AlexaActor extends Object
| Constructor and Description |
|---|
AlexaActor(AlexaClient client)
A new actor that uses the client provided to have a conversation with a skill.
|
| Modifier and Type | Method and Description |
|---|---|
abstract com.amazon.speech.json.SpeechletRequestEnvelope |
envelope(AlexaRequest request)
The method of enveloping a speechlet request is delegated to the actor as he is
the one able to decide how to do it.
|
abstract void |
exploitResponse(AlexaResponse response)
Once a request was made to the skill a response is received.
|
AlexaClient |
getClient()
The client is used by the actor to fire requests.
|
public AlexaActor(AlexaClient client)
client - the client to usepublic AlexaClient getClient()
public abstract com.amazon.speech.json.SpeechletRequestEnvelope envelope(AlexaRequest request)
request - the request that needs an envelopmentpublic abstract void exploitResponse(AlexaResponse response)
response - the response to exploitCopyright © 2018. All rights reserved.