public Client(string luisEndpoint, string luisKey, string luisAppId) { _luisPredictionServices = new List <LuisPredictionService>() { new LuisPredictionService(luisEndpoint, luisKey, luisAppId) }; _transcriptParser = new TranscriptParser(); _resultGenerator = new IAPResultGenerator(); }
public Client(string luisEndpoint, string luisKey, string luisAppId, string textAnalyticsEndpoint, string textAnalyticsKey, string language = Constants.TextAnalyticsLanguageCode) { _luisPredictionServices = new List <LuisPredictionService>() { new LuisPredictionService(luisEndpoint, luisKey, luisAppId) }; _transcriptParser = new TranscriptParser(); _resultGenerator = new IAPResultGenerator(); _textAnalyticsService = new TextAnalyticsService(textAnalyticsEndpoint, textAnalyticsKey, language); }
public IAPProccessController( IStorageService storageService, ITranscriptParser transcriptParser, ILuisPredictionService luisPredictionService, IIAPResultGenerator transcriptGenerator, ITextAnalyticsService textAnalyticsService) { _storageService = storageService; _transcriptParser = transcriptParser; _luisPredictionService = luisPredictionService; _resultGenerator = transcriptGenerator; _textAnalyticsService = textAnalyticsService; }
public Client(List <LuisCredentials> credentials) { if (credentials == null || credentials.Count == 0) { throw new Exception("Credentials list can't be null or empty"); } _luisPredictionServices = new List <LuisPredictionService>(); foreach (var credential in credentials) { _luisPredictionServices.Add(new LuisPredictionService(credential.Endpoint, credential.Key, credential.AppId)); } _transcriptParser = new TranscriptParser(); _resultGenerator = new IAPResultGenerator(); }
public MailProcessor(ITranscriptParser transcriptParser, IMailReader gmailReader, ICalendarWriter gcalendarWriter) { _transcriptParser = transcriptParser; _gmailReader = gmailReader; _gcalendarWriter = gcalendarWriter; }