本文整理汇总了TypeScript中botbuilder.Prompts.confirm方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Prompts.confirm方法的具体用法?TypeScript Prompts.confirm怎么用?TypeScript Prompts.confirm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类botbuilder.Prompts
的用法示例。
在下文中一共展示了Prompts.confirm方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
function (session, args, next) {
if (!session.userData.selectedOffer) {
builder.Prompts.confirm(session, "Hello " + session.userData.name + "! Are you interested in " + currentOffer + " Offer?");
}
else {
next({ response: true });
}
},
示例2: function
function (session, args, next) {
if (session.message.text.indexOf("set tv package") == -1) {
if (!session.userData.channelSearchResultsShown) {
if (null == session.userData.selectedPackageName || session.userData.selectedPackageName.length == 0) {
session.userData.selectedPackageName = fiosTVPackages["custom_tv_essentials"];
}
var packageInfo = "Your current TV package selection is " + session.userData.selectedPackageName;
builder.Prompts.confirm(session, packageInfo + "<br/>Are you looking for any specific channels in your package?");
}
else {
if (session.userData.channelSearchResultsShown) {
var packageInfo = "Your current TV package selection is " + session.userData.selectedPackageName;
builder.Prompts.confirm(session, packageInfo + "<br/>Are you still looking for any specific channels in your package?");
}
else {
next({ "response": true });
}
}
}
else if(session.message.text.indexOf("set tv package") != -1) {
session.replaceDialog('/query-package-luis');
}
},