All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.voxeo.tropo.actions.NestedOnAction Maven / Gradle / Ivy

The newest version!
package com.voxeo.tropo.actions;

import com.voxeo.tropo.Key;
import com.voxeo.tropo.annotations.ValidKeys;

import support.ActionSupportHandler;

@ValidKeys(keys={"next","value","event","name","required","post"})
public class NestedOnAction extends ArrayAction {

	private ActionSupportHandler sayActionSupportHandler = new ActionSupportHandler(SayAction.class);	
	private ActionSupportHandler askActionSupportHandler = new ActionSupportHandler(AskAction.class);

	public NestedOnAction() {
		
		super();
		setName("on");
	}
	
	public NestedOnAction(Key... keys) {
	
		super(keys);
		setName("on");
	}	
	
	public SayAction say(String text, String name) {

		return say(Key.VALUE(text), Key.NAME(name));
	}
	
	public SayAction say(Key... keys) {

		return sayActionSupportHandler.build(this, keys);
	}

  public AskAction ask(Key... keys) {

    return askActionSupportHandler.build(this, keys);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy