alarm sample: rename bot to dialog
This commit is contained in:
Родитель
65d6a2ce55
Коммит
b255afd897
|
@ -22,7 +22,7 @@ namespace Microsoft.Bot.Sample.SimpleAlarmBot
|
|||
/// </summary>
|
||||
public async Task<Message> Post([FromBody]Message message)
|
||||
{
|
||||
return await Conversation.SendAsync(message, () => new SimpleAlarmBot());
|
||||
return await Conversation.SendAsync(message, () => new SimpleAlarmDialog());
|
||||
}
|
||||
|
||||
// ------ to send a message
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
<DependentUpon>Global.asax</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SimpleAlarmBot.cs" />
|
||||
<Compile Include="SimpleAlarmDialog.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="packages.config">
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Microsoft.Bot.Sample.SimpleAlarmBot
|
|||
{
|
||||
[LuisModel("c413b2ef-382c-45bd-8ff0-f76d60e2a821", "fe054e042fd14754a83f0a205f6552a5")]
|
||||
[Serializable]
|
||||
public class SimpleAlarmBot : LuisDialog
|
||||
public class SimpleAlarmDialog : LuisDialog
|
||||
{
|
||||
private readonly Dictionary<string, Alarm> alarmByWhat = new Dictionary<string, Alarm>();
|
||||
|
||||
|
@ -203,7 +203,7 @@ namespace Microsoft.Bot.Sample.SimpleAlarmBot
|
|||
context.Wait(MessageReceived);
|
||||
}
|
||||
|
||||
public SimpleAlarmBot(ILuisService service = null)
|
||||
public SimpleAlarmDialog(ILuisService service = null)
|
||||
: base(service)
|
||||
{
|
||||
}
|
Загрузка…
Ссылка в новой задаче