PromptRecognizerResult<T> Class
- java.
lang. Object - com.
microsoft. bot. dialogs. prompts. PromptRecognizerResult<T>
- com.
Type Parameters
- T
The type of value the prompt returns.
public class PromptRecognizerResult<T>
Contains the result returned by the recognition method of a {@link Prompt{T}} .
Constructor Summary
| Constructor | Description |
|---|---|
| PromptRecognizerResult() |
Initializes a new instance of the {@link Prompt |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.Boolean |
getAllowInterruption()
Gets a value indicating whether flag indicating whether or not parent dialogs should be allowed to interrupt the prompt. |
| java.lang.Boolean |
getSucceeded()
Gets a value indicating whether the recognition attempt succeeded. |
| T |
getValue()
Gets the recognition value. |
| void |
setAllowInterruption(Boolean allowInterruption)
Sets a value indicating whether flag indicating whether or not parent dialogs should be allowed to interrupt the prompt. |
| void |
setSucceeded(Boolean succeeded)
Sets a value indicating whether the recognition attempt succeeded. |
| void |
setValue(T value)
Sets the recogntion value. |
Methods inherited from java.lang.Object
Constructor Details
PromptRecognizerResult
public PromptRecognizerResult()
Initializes a new instance of the {@link PromptRecognizerResult{T}} class.
Method Details
getAllowInterruption
public Boolean getAllowInterruption()
Gets a value indicating whether flag indicating whether or not parent dialogs should be allowed to interrupt the prompt.
Returns:
false.getSucceeded
public Boolean getSucceeded()
Gets a value indicating whether the recognition attempt succeeded.
Returns:
getValue
public T getValue()
Gets the recognition value.
Returns:
setAllowInterruption
public void setAllowInterruption(Boolean allowInterruption)
Sets a value indicating whether flag indicating whether or not parent dialogs should be allowed to interrupt the prompt.
Parameters:
false.
setSucceeded
public void setSucceeded(Boolean succeeded)
Sets a value indicating whether the recognition attempt succeeded.
Parameters:
setValue
public void setValue(T value)
Sets the recogntion value.
Parameters: