dialogflow / dialogflow-android-client

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

Response parsing? #91

Open odineshrao opened 6 years ago

odineshrao commented 6 years ago

How to parse response? i got "result": { "source": "agent", "resolvedQuery": "welcome", }, "fulfillment": { "messages": [ { "type": 0, "speech": "Hey!" }, { "type": 0, "speech": "How may I help you?" } ] } } i want to parse "speech" from "messages" i tried --List reply= result.getFulfillment().getMessages().getSpeech(); but getSpeech() is not suggest. how can i get speech value?

BavithraR commented 6 years ago

Hi

Did you find any solutions ? I am also facing the same issue .