
com.voxeo.tropo.actions.NestedOnAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tropo-webapi-java Show documentation
Show all versions of tropo-webapi-java Show documentation
WebApi Java implementation for the Tropo Cloud platform
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