c'tor
forwards to currently active ITextManager.getText
handler that needs to be implemented in inheriting Intent
allows to query for the intents string representation that needs to match intent schema
allows to define used textManager
returns the localized text string depending on the loaded locale database
class TestIntent : BaseIntent{ override AlexaResult onIntent(AlexaEvent, AlexaContext){ AlexaResult res; res._version = "v3"; return res; } } class TestSkill : AlexaSkill!TestSkill{ this(){ super([]); addIntent(new TestIntent); } } auto skill = new TestSkill(); AlexaEvent ev; ev.request.type = AlexaRequest.Type.IntentRequest; ev.request.intent.name = "TestIntent"; auto res = skill.executeEvent(ev,AlexaContext()); assert(res._version == "v3");
abstract base class for a separate intent