Package com.vonage.client.voice.ncco
Class DtmfSettings
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.voice.ncco.DtmfSettings
- All Implemented Interfaces:
Jsonable
DTMF (Dial Tone Multi Frequency) settings for Input Actions that will be added to a NCCO object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for specifying DTMF settings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DtmfSettings.Builderbuilder()Entrypoint for constructing an instance of this class.The number of digits the user can press.Time to wait in seconds before submitting the event.Determines if the callee's activity is sent to your webhook endpoint after pressing the hash key.voidsetMaxDigits(Integer maxDigits) Deprecated.Use the builder().voidsetSubmitOnHash(Boolean submitOnHash) Deprecated.Use the builder().voidsetTimeOut(Integer timeOut) Deprecated.Use the builder().Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
DtmfSettings
Deprecated.Usebuilder(). This will be made package-private in the next major release.Constructor.
-
-
Method Details
-
getTimeOut
Time to wait in seconds before submitting the event. Default value is 3.- Returns:
- The DTMF input timeout in seconds as an integer, or
nullif unspecified.
-
setTimeOut
Deprecated.Use the builder(). This will be removed in the next major release.The result of the callee's activity is sent to theeventUrlwebhook endpointtimeOutseconds after the last action. The default value is 3. Max is 10.- Parameters:
timeOut- The DTMF input timeout in seconds as an int.
-
getMaxDigits
The number of digits the user can press. The maximum value is 20, the default is 4 digits.- Returns:
- The number of digits as an integer, or
nullif unspecified.
-
setMaxDigits
Deprecated.Use the builder(). This will be removed in the next major release.The number of digits the user can press. The maximum value is 20, the default is 4 digits.- Parameters:
maxDigits- The number of digits as an int.
-
isSubmitOnHash
Determines if the callee's activity is sent to your webhook endpoint after pressing the hash key.- Returns:
trueif the input is submitted on#, ornullif unspecified.
-
setSubmitOnHash
Deprecated.Use the builder(). This will be removed in the next major release.Set totrueso the callee's activity is sent to your webhook endpoint ateventUrlafter they press#. If # is not pressed the result is submitted aftertimeOutseconds. The default value isfalse. That is, the result is sent to your webhook endpoint aftertimeOutseconds.- Parameters:
submitOnHash- Whether to submit the input after pressing the hash key.
-
builder
Entrypoint for constructing an instance of this class.- Returns:
- A new Builder.
- Since:
- 8.9.4
-
builder().