
com.voxeo.tropo.actions.CallAction 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 support.ActionSupportHandler;
import support.HeadersSupportHandler;
import com.voxeo.tropo.Key;
import com.voxeo.tropo.annotations.RequiredKeys;
import com.voxeo.tropo.annotations.ValidKeys;
@ValidKeys(keys = { "to", "allowSignals", "answerOnMedia", "channel", "from", "headers", "name", "network", "required", "timeout", "machineDetection", "voice", "callbackUrl", "promptLogSecurity", "label" })
@RequiredKeys(keys = { "to" })
public class CallAction extends JsonAction {
private ActionSupportHandler startRecordingActionSupportHandler = new ActionSupportHandler(StartRecordingAction.class);
private HeadersSupportHandler headersSupportHandler = new HeadersSupportHandler();
public CallAction() {
super();
setName("call");
}
public CallAction(Key... keys) {
super(keys);
setName("call");
}
public StartRecordingAction startRecording(Key... keys) {
return startRecordingActionSupportHandler.build(this, keys);
}
public HeadersAction headers(String[]... keys) {
return headersSupportHandler.headers(this, keys);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy