java.lang.Object
com.azure.communication.callautomation.models.RecognizeResult
com.azure.communication.callautomation.models.DtmfResult
All Implemented Interfaces:
com.azure.json.JsonSerializable<RecognizeResult>

public final class DtmfResult extends RecognizeResult
The DtmfResult model.
  • Constructor Details

    • DtmfResult

      public DtmfResult()
  • Method Details

    • 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.
    • convertToString

      public String convertToString()
      Set the tones property: The tones property.
      Returns:
      the DtmfResult object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Throws:
      IOException
    • fromJson

      public static DtmfResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.