dialogflow / dialogflow-android-client

Android SDK for Dialogflow
https://dialogflow.com
Apache License 2.0
575 stars 270 forks source link

AIRequest and AIResponse files are missing in the SDK #65

Open bhuva13 opened 7 years ago

bhuva13 commented 7 years ago

I'm trying to send the text(Voice text) using following code in in the SDK .

final AIConfiguration config = new AIConfiguration(ACCESS_TOKEN, AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.System);

final AIDataService aiDataService = new AIDataService(config); final AIRequest aiRequest = new AIRequest(); aiRequest.setQuery("Hello");

But AIRequest,AIResponse files are not available in the "ai.api:sdk:2.0.7@aar" . I think ai.api.model.AIRequest; and ai.api.model.AIResponse packages are missing in the SDK. So Please help me to write the AIRequest to perform network operation.

And, I'm getting 'Cannot resolve symbol 'SupportedLanguage' error in compile time.

asvskartheek commented 7 years ago

That is because they are the part ai.api:libai:1.6.12, add that dependency also, this will clear the problem.