@Override protected void addTurnProperties(JsonObjectBuilder builder) { JsonUtils.add(builder, SUBMIT_URI_PROPERTY, mUri); JsonUtils.add(builder, SUBMIT_METHOD_PROPERTY, mMethod.name()); JsonUtils.add(builder, SUBMIT_PARAMETERS_PROPERTY, mSubmitParameters); JsonUtils.add(builder, SUBDIALOGUE_PARAMETERS_PROPERTY, JsonUtils.toJson(mParameters)); JsonUtils.add(builder, FETCH_CONFIGURATION_PROPERTY, mFetchConfiguration); JsonUtils.add(builder, POST_DIALOGUE_SCRIPT_PROPERTY, getPostDialogueScript()); }
@Override public JsonValue asJson() { JsonObjectBuilder builder = JsonUtils.createObjectBuilder(); JsonUtils.add( builder, ACKNOWLEDGE_AUDIO_ITEMS_PROPERTY, JsonUtils.toJson(mAcknowledgeAudioItems)); JsonUtils.add(builder, DTMF_RECOGNITION_CONFIGURATION_PROPERTY, mDtmfRecognitionConfiguration); JsonUtils.add( builder, SPEECH_RECOGNITION_CONFIGURATION_PROPERTY, mSpeechRecognitionConfiguration); JsonUtils.addTimeProperty(builder, NO_INPUT_TIMEOUT_PROPERTY, mNoInputTimeout); return builder.build(); }