public async Task <SkillResponse> HandleIntent() { LOGGER.log.DEBUG("No", "HandleIntent", "Current State: " + this.sessionAttributes.SessionState); if (this.sessionAttributes.SessionState != STATE.Introduction) { WordsToRead wordsToRead = new WordsToRead(base.skillRequest); return(await wordsToRead.HandleIntent()); } this.sessionAttributes.SessionState = STATE.Off; return(ResponseBuilder.Tell("When you are ready to begin say, 'Alexa, open Moyca Readers'. Goodbye.")); }
public async Task <SkillResponse> HandleIntent() { LOGGER.log.DEBUG("Help", "HandleIntent", "CURRENT STATE: " + this.sessionAttributes.Schedule); if (this.sessionAttributes.SessionState != STATE.Introduction) { WordsToRead wordsToRead = new WordsToRead(base.skillRequest); return(await wordsToRead.HandleIntent()); } this.sessionAttributes.SessionState = STATE.Help; var prompt = new SsmlOutputSpeech("You can move to other flash card lessons. Lessons available are word families, " + "short vowels, consonant digraphs, consonant blends, long vowels, and sight words. Just say, " + "Alexa, move to word families"); string reprompt = "Try to say, Alexa, move to word families"; return(AlexaResponse.SayWithReprompt(prompt, reprompt)); }
public async Task <SkillResponse> HandleIntent() { LOGGER.log.INFO("Yes", "HandleIntent"); if (base.sessionAttributes.SessionState != STATE.Introduction) { LOGGER.log.DEBUG("Yes", "HandleIntent", "Yes was said, but not in introduction"); WordsToRead wordsToRead = new WordsToRead(this.skillRequest); return(await wordsToRead.HandleIntent()); } base.sessionAttributes.SessionState = STATE.FirstWord; LOGGER.log.DEBUG("Yes", "HandleIntent", "Current Word: " + base.sessionAttributes.CurrentWord); WordAttributes wordAttributes = await WordAttributes.GetWordAttributes(this.sessionAttributes.CurrentWord, LOGGER.log); return(LessonFactory.GetLesson(this.sessionAttributes.LessonType).Dialogue(sessionAttributes.LessonMode, wordAttributes)); }