public ISentence GetNextSentence(string incomingSentence) { if (AnswerParser.IsAnswerNegative(incomingSentence)) { return(new DeclareNextSteps("Sure, I’ll be around, when you come back just say Hi and we can pick up here. I will send you a checklist of documents I’ll need and also a link to upload them if you’d like to do that at your convenience.")); } return(new UploadOtherAssetsAndDebts()); }
//public int GetNextTransitionQuestion => 3; //public int GetNextClarifyingQuestion => 2; //public int GetNextQuestion(string answer) //{ // var isNegative = AnswerParser.IsAnswerNegative(answer); // return isNegative ? 2 : 3; //} public ISentence GetNextSentence(string incomingSentence) { var isNegative = AnswerParser.IsAnswerNegative(incomingSentence); if (isNegative) { return(new NullSentence()); } return(new HaveYouAreadyDecidedOnAHome()); }
public ISentence GetNextSentence(string incomingSentence) { //var number = Regex.Replace(incomingSentence, @"[^\d]", ""); if (AnswerParser.IsAnswerNegative(incomingSentence)) { Synonyms.UpdateSynonym("75 large", "$75,000"); return(new AssertSalary("Oh gotcha, $75,000")); } return(new OkProvidingAssetsAndDebts()); }
internal void Process(List <Shade> shades) { RawShades = shades; IsResultReady = false; PaperParser.Process(shades); ShadeItemKeys.Clear(); if (PaperParser.MainReady) { foreach (ItemParser itemParser in ItemParsers) { itemParser.Process(PaperParser); ShadeItemKeys.AddRange(itemParser.ItemKeys); } SetParser.Process(PaperParser); PaperItem[] keys = new PaperItem[Assessment.GetTypeLength(Assessment.AssessmentType)]; for (int i = 0; i < keys.Length; i++) { keys[i] = new PaperItem(false, false, false, false, false); } foreach (ShadeItemKey shadeItemKey in ShadeItemKeys) { switch (shadeItemKey.Key) { case Key.A: keys[shadeItemKey.ItemNumber - 1].A = true; break; case Key.B: keys[shadeItemKey.ItemNumber - 1].B = true; break; case Key.C: keys[shadeItemKey.ItemNumber - 1].C = true; break; case Key.D: keys[shadeItemKey.ItemNumber - 1].D = true; break; case Key.E: keys[shadeItemKey.ItemNumber - 1].E = true; break; } } AnswerParser = AnswerParser.Parse(Assessment, keys, SetParser.SetParserResult); IsResultReady = true; } }