ChoiceResult Class
- java.
lang. Object - com.
azure. communication. callautomation. models. RecognizeResult - com.
azure. communication. callautomation. models. ChoiceResult
- com.
- com.
public final class ChoiceResult
extends RecognizeResult
The ChoiceResult model.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Choice |
fromJson(JsonReader jsonReader)
Reads an instance of Choice |
| String |
getLabel()
Get the label property: Label is the primary identifier for the choice detected. |
| String |
getRecognizedPhrase()
Get the recognized |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static ChoiceResult fromJson(JsonReader jsonReader)
Reads an instance of ChoiceResult from the JsonReader.
Parameters:
Returns:
Throws:
getLabel
public String getLabel()
Get the label property: Label is the primary identifier for the choice detected.
Returns:
getRecognizedPhrase
public String getRecognizedPhrase()
Get the recognizedPhrase property: Phrases are set to the value if choice is selected via phrase detection. If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set to null.
Returns: