public static Duration milliseconds(long milliseconds) { Assert.notNegative(milliseconds, "milliseconds"); return new Duration(milliseconds); }
/** * @param submitParameters A list of variable to submit when invoking the * URI. Not null. */ public final void setSubmitParameters(VariableList submitParameters) { Assert.notNull(submitParameters, "submitParameters"); mSubmitParameters = submitParameters; }
/** * @param sensitivity Set the sensitivity level. A value of 1.0 means that * it is highly sensitive to quiet input. A value of 0.0 means it * is least sensitive to noise. <code>null</code> to use the * VoiceXML platform default. */ public void setSensitivity(Double sensitivity) { if (sensitivity != null) { Assert.between(0, sensitivity, 1.0); } mSensitivity = sensitivity; }
/** * @param text The synthesis text. Not empty. */ public SpeechSynthesis(String text) { Assert.notEmpty(text, "text"); mText = text; mDocumentFragment = null; }
/** * @param speechRecognition The speech recognition configuration. * @param dtmfRecognition The DTMF recognition configuration. * @param audioItems The list of {@link AudioItem}. Not null. */ public Prompt(SpeechRecognition speechRecognition, DtmfRecognition dtmfRecognition, AudioItem... audioItems) { this(speechRecognition, dtmfRecognition, asListChecked(audioItems)); }
/** * Sets maximum duration the servlet thread can wait for the dialogue * response. * * @param dialogueTimeout the timeout. Cannot be <code>null</code>. A value * of <code>Duration.ZERO</code> (or equivalent) means to wait * forever. */ public final void setDialogueTimeout(Duration dialogueTimeout) { Assert.notNull(dialogueTimeout, "dialogueTimeout"); mDialogueTimeout = dialogueTimeout; }
/** * @param name The name of this turn. Not empty. * @param uri The URI of the subdialogue. Not empty. */ public SubdialogueCall(String name, String uri) { super(name); Assert.notEmpty(uri, "uri"); mUri = uri; }
public Disconnect(String name, VariableList variables) { super(name); Assert.notNull(variables, VARIABLES_PROPERTY); mVariables = variables; }
/** * @param name The name of this turn. Not empty. * @param destination The URI of the destination (telephone, IP telephony * address). Not empty. */ public Transfer(String name, String destination) { super(name); Assert.notEmpty(destination, "destination"); mDestination = destination; }
public Builder setMethod(SubmitMethod method) { Assert.notNull(method, "method"); mMethod = method; return this; }
/** * Sets the logger for this dialogue channel. * * @param logger The logger. Cannot be <code>null</code>. */ public void setLogger(Logger logger) { Assert.notNull(logger, "logger"); mLogger = logger; }
public Submit(String name, String uri, VariableList variables) { super(name); Assert.notNull(uri, "uri"); mVariables = variables; mUri = uri; }
public Return(String name, VariableList variables) { super(name); Assert.notNull(variables, VARIABLES_PROPERTY); mVariables = variables; }