Exemple #1
0
        public async Task TrackPackageAsync(IDialogContext context, LuisResult result)
        {
            await Task.CompletedTask;

            context.ConversationData.SetValue("LuisResult", result);
            var packageId = context.GetPackageId();

            if (string.IsNullOrEmpty(packageId))
            {
                context.Call <string>(new GetPackageId(), AfterPackageIdForTrackingStatus);
            }
            else
            {
                context.Call(new DisplayPackageStatus(packageId), AfterDisplayPackageStatus);
            }
        }