Exemplo n.º 1
0
        public async Task GetVacationsIntent(string utterance)
        {
            CotorriaBotManager CotorriaBotManager = new CotorriaBotManager(new CotorriaBotLUISProvider());
            var res = await CotorriaBotManager.GetIntent(utterance);

            Assert.NotNull(res);
            Assert.NotEmpty(res);
        }
        //[Security(ServiceID = PermissionContants.SuperMamalonPermission.ServiceID,
        //  UseAuthorization = false,
        //  UseSession = false,
        //  Permissions = new[] { PermissionContants.SuperMamalonPermission.PermissionID },
        //  ResourceID = PermissionContants.SuperMamalonPermission.CotoRRA_Cloud_ID_String,
        //  UserInstanceAsOwner = false)]
        public async Task <string> GetIntent(Guid companyId, Guid instanceId, string utterance)
        {
            CotorriaBotManager CotorriaBotManager = new CotorriaBotManager(new CotorriaBotLUISProvider());

            return(await CotorriaBotManager.GetIntent(utterance));
        }
Exemplo n.º 3
0
        public async Task <string> GetIntent(GetIntentParams parameters)
        {
            CotorriaBotManager CotorriaBotManager = new CotorriaBotManager(new CotorriaBotLUISProvider());

            return(await CotorriaBotManager.GetIntent(parameters.Utterance));
        }