diff --git a/BotAgentRemi/Dialogs/Need/NeedDialog.cs b/BotAgentRemi/Dialogs/Need/NeedDialog.cs index c19f0b3..a96993f 100644 --- a/BotAgentRemi/Dialogs/Need/NeedDialog.cs +++ b/BotAgentRemi/Dialogs/Need/NeedDialog.cs @@ -1,16 +1,19 @@ -using BotAgentRemi.State; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; + +using BotAgentRemi.State; + using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Extensions.Configuration; + using Shared; using Shared.ApiInterface; using Shared.Models; using Shared.Prompts; using Shared.Storage; using Shared.Translation; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; namespace BotAgentRemi.Dialogs.Need { @@ -31,22 +34,9 @@ public override Task GetWaterfallDialog(ITurnContext turnContex return Task.Run(() => { return new WaterfallDialog(Name, new WaterfallStep[] - { - async (dialogContext, cancellationToken) => - { - return await dialogContext.PromptAsync( - Prompt.ConfirmPrompt, - new PromptOptions { Prompt = Phrases.Need.GetPrivacyConsent }, - cancellationToken); - }, + { async (dialogContext, cancellationToken) => - { - if (!(bool)dialogContext.Result) - { - await Messages.SendAsync(Phrases.Need.NoConsent, turnContext, cancellationToken); - return await dialogContext.EndDialogAsync(null, cancellationToken); - } - + { return await dialogContext.PromptAsync( Prompt.TextPrompt, new PromptOptions { Prompt = Phrases.Need.GetNeed }, diff --git a/BotAgentRemi/Phrases.cs b/BotAgentRemi/Phrases.cs index 5df0520..fa4a55c 100644 --- a/BotAgentRemi/Phrases.cs +++ b/BotAgentRemi/Phrases.cs @@ -1,6 +1,7 @@ -using Microsoft.Bot.Builder; +using System.Collections.Generic; + +using Microsoft.Bot.Builder; using Microsoft.Bot.Schema; -using System.Collections.Generic; namespace BotAgentRemi { @@ -22,7 +23,7 @@ public static class Options public static class Need { public static Activity GetPrivacyConsent = MessageFactory.Text($"To help with your need," + - $" I'll need to share you phone number with my manager at Team Rubicon and the Greyshirt matched to you." + + $" I'll need to share your phone number with my manager at Team Rubicon and the Greyshirt matched to you." + $" Don't worry, I'll never share your number with anyone else, and it won't be used for marketing. Your privacy is my priority." + $" Is that okay? {Shared.Phrases.EnterNumber}"); diff --git a/Shared/Phrases.cs b/Shared/Phrases.cs index 42d982f..0577539 100644 --- a/Shared/Phrases.cs +++ b/Shared/Phrases.cs @@ -1,9 +1,11 @@ -using Microsoft.Bot.Builder; +using System.Collections.Generic; + +using Microsoft.Bot.Builder; using Microsoft.Bot.Connector; using Microsoft.Bot.Schema; + using Shared.Models; using Shared.Translation; -using System.Collections.Generic; namespace Shared { @@ -72,7 +74,7 @@ public static List GetOptionsList(User user, Translator translator) { var list = new List { UpdateLocation }; - if (translator.IsConfigured) + if(translator.IsConfigured) { list.Add(UpdateLanguage); }