Ejemplo n.º 1
0
 @Override
 protected void addTurnProperties(JsonObjectBuilder builder) {
   super.addTurnProperties(builder);
   JsonUtils.addDurationProperty(builder, CONNECT_TIMEOUT_PROPERTY, mConnectTimeout);
   JsonUtils.add(builder, TRANSFER_AUDIO_PROPERTY, mTransferAudio);
   JsonUtils.add(builder, DTMF_RECOGNITION_PROPERTY, mDtmfRecognition);
   JsonUtils.add(builder, SPEECH_RECOGNITION_PROPERTY, mSpeechRecognition);
 }
Ejemplo n.º 2
0
 @Override
 public JsonValue asJson() {
   JsonObjectBuilder builder = JsonUtils.createObjectBuilder();
   JsonUtils.add(builder, NAME_PROPERTY, mName);
   JsonUtils.add(builder, EXPRESSION_PROPERTY, mExpression);
   JsonUtils.add(builder, VALUE_PROPERTY, mValue);
   return builder.build();
 }
Ejemplo n.º 3
0
 @Override
 protected void addTurnProperties(JsonObjectBuilder builder) {
   JsonUtils.add(builder, DESTINATION_PROPERTY, mDestination);
   JsonUtils.add(
       builder,
       APPLICATION_TO_APPLICATION_INFORMATION_PROPERTY,
       mApplicationToApplicationInformation);
   JsonUtils.add(builder, TRANSFER_TYPE_PROPERTY, getTransferType());
 }
Ejemplo n.º 4
0
 @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());
 }
Ejemplo n.º 5
0
 @Override
 protected void addTurnProperties(JsonObjectBuilder builder) {
   JsonUtils.add(builder, SCRIPT_PROPERTY, mScript);
   JsonUtils.add(builder, VARIABLES_PROPERTY, mVariables);
 }