public class KbaCreateCallback extends AbstractPromptCallback
prompt_id, content, VALUE| Constructor and Description |
|---|
KbaCreateCallback() |
KbaCreateCallback(org.json.JSONObject raw,
int index) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getPredefinedQuestions()
Get the predefined questions available to the user to choose from.
|
java.lang.String |
getType()
Return the type of the Callback, the type name should align with the Callback type returned
from AM
|
protected void |
setAttribute(java.lang.String name,
java.lang.Object value) |
void |
setSelectedAnswer(java.lang.String selectedAnswer)
Set the user's chosen response to their chosen question.
|
void |
setSelectedQuestion(java.lang.String selectedQuestion)
Set the user's chosen question.
|
getPromptget_id, getContent, getContentAsJson, getInputValue, getInputValue, getName, setContent, setValue, setValuepublic KbaCreateCallback(org.json.JSONObject raw,
int index)
public KbaCreateCallback()
protected void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in class AbstractPromptCallbackpublic void setSelectedQuestion(java.lang.String selectedQuestion)
selectedQuestion - the user's chosen questionpublic void setSelectedAnswer(java.lang.String selectedAnswer)
selectedAnswer - the user's chosen responsepublic java.lang.String getType()
Callbackpublic java.util.List<java.lang.String> getPredefinedQuestions()