WordData Class

  • java.lang.Object
    • com.azure.communication.callautomation.models.WordData

Implements

public class WordData
implements JsonSerializable<WordData>

The result for each word of the phrase

Constructor Summary

Constructor Description
WordData()

Creates a new instance of WordData.

Method Summary

Modifier and Type Method and Description
static WordData fromJson(JsonReader jsonReader)

Reads an instance of Word from the JsonReader.

Duration getDuration()

Get the duration property.

long getOffset()

Get the offset property.

String getText()

Get the text property.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

WordData

public WordData()

Creates a new instance of WordData.

Method Details

fromJson

public static WordData 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.

getDuration

public Duration getDuration()

Get the duration property.

Returns:

the duration value.

getOffset

public long getOffset()

Get the offset property.

Returns:

the offset value.

getText

public String getText()

Get the text property.

Returns:

the text value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to