DtmfResult Class

public final class DtmfResult
extends RecognizeResult

The DtmfResult model.

Constructor Summary

Constructor Description
DtmfResult()

Creates an instance of DtmfResult.

Method Summary

Modifier and Type Method and Description
String convertToString()

Set the tones property: The tones property.

static DtmfResult fromJson(JsonReader jsonReader)

Reads an instance of Word from the JsonReader.

List<DtmfTone> getTones()

Get the tones property: The tones property.

DtmfResult setTones(List<DtmfTone> dtmfTones)

Set the tones property: The tones property.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

DtmfResult

public DtmfResult()

Creates an instance of DtmfResult.

Method Details

convertToString

public String convertToString()

Set the tones property: The tones property.

Returns:

the DtmfResult object itself.

fromJson

public static DtmfResult fromJson(JsonReader jsonReader)

Reads an instance of Word from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Word if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Word.

getTones

public List<DtmfTone> getTones()

Get the tones property: The tones property.

Returns:

the tones value.

setTones

public DtmfResult setTones(List<DtmfTone> dtmfTones)

Set the tones property: The tones property.

Parameters:

dtmfTones - the tones value to set.

Returns:

the DtmfResult object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to