public class CreateInteractionChoiceSet extends RPCRequest
Function Group: Base
HMILevel needs to be FULL, LIMITED or BACKGROUND
AudioStreamingState : ANY
SystemContext: MAIN, MENU, VR
Parameter List
| Name | Type | Description | Reg. | Notes | Version |
|---|---|---|---|---|---|
| interactionChoiceSetID | Integer | A unique ID that identifies the Choice Set | Y | Min Value: 0; Max Value: 2000000000 | SmartDeviceLink 1.0 |
| choiceSet | Choice[] | Array of one or more elements. | Y | Min Value: 1; Max Value: 100 | SmartDeviceLink 1.0 |
Note:
Second Utterance issue with CreateInteractionChoiceSet RPC. Before a perform interaction is sent you MUST wait for the success from the CreateInteractionChoiceSet RPC. If you do not wait the system may not recognize the first utterance from the user.Response
Indicates that the corresponding request either failed or succeeded. If the response returns with a SUCCESS result code, this means the Choice Set was created.
Non-default Result Codes:
SUCCESS
INVALID_DATA
OUT_OF_MEMORY
TOO_MANY_PENDING_REQUESTS
APPLICATION_NOT_REGISTERED
GENERIC_ERROR
REJECTED
INVALID_ID
DUPLICATE_NAME
UNSUPPORTED_RESOURCE
DeleteInteractionChoiceSet,
PerformInteraction| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CHOICE_SET |
static String |
KEY_INTERACTION_CHOICE_SET_ID |
onResponseListenerfunction, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
CreateInteractionChoiceSet()
Constructs a new CreateInteractionChoiceSet object
|
CreateInteractionChoiceSet(Hashtable<String,Object> hash)
Constructs a new CreateInteractionChoiceSet object indicated by the
Hashtable parameter
|
CreateInteractionChoiceSet(Integer interactionChoiceSetID,
List<Choice> choiceSet)
Constructs a new CreateInteractionChoiceSet object
|
| Modifier and Type | Method and Description |
|---|---|
List<Choice> |
getChoiceSet()
Gets Choice Set Array of one or more elements
|
Integer |
getInteractionChoiceSetID()
Gets the Choice Set unique ID
|
CreateInteractionChoiceSet |
setChoiceSet(List<Choice> choiceSet)
Sets a Choice Set that is an Array of one or more elements
|
CreateInteractionChoiceSet |
setInteractionChoiceSetID(Integer interactionChoiceSetID)
Sets a unique ID that identifies the Choice Set
|
getCorrelationID, getOnRPCResponseListener, setCorrelationID, setOnRPCResponseListenergetBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, format, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_CHOICE_SET
public static final String KEY_INTERACTION_CHOICE_SET_ID
public CreateInteractionChoiceSet()
public CreateInteractionChoiceSet(Hashtable<String,Object> hash)
Constructs a new CreateInteractionChoiceSet object indicated by the Hashtable parameter
hash - The Hashtable to usepublic CreateInteractionChoiceSet(@NonNull
Integer interactionChoiceSetID,
@NonNull
List<Choice> choiceSet)
interactionChoiceSetID: - an Integer value representing the Choice Set ID
Notes: Min Value: 0; Max Value: 2000000000choiceSet: - a Listpublic Integer getInteractionChoiceSetID()
public CreateInteractionChoiceSet setInteractionChoiceSetID(@NonNull Integer interactionChoiceSetID)
interactionChoiceSetID - an Integer value representing the Choice Set ID
Notes: Min Value: 0; Max Value: 2000000000public List<Choice> getChoiceSet()
public CreateInteractionChoiceSet setChoiceSet(@NonNull List<Choice> choiceSet)
choiceSet - a List