Function GenieDialog_setStopSequence¶
Defined in File GenieDialog.h
Function Documentation¶
-
Genie_Status_t GenieDialog_setStopSequence(const GenieDialog_Handle_t dialogHandle, const char *newStopSequences)¶
A function to set/update the list of stop sequences of a dialog. Old sequences if any are discarded. Call with a nullptr or an empty JSON or an empty string to reset to no stop sequence.
- Parameters
dialogHandle – [in] A dialog handle.
newStopSequences – [in] A JSON string with list of new stop sequences. Must be null terminated.
- Returns
Status code:
GENIE_STATUS_SUCCESS: API call was successful.
GENIE_STATUS_ERROR_INVALID_HANDLE: Dialog handle is invalid.
GENIE_STATUS_ERROR_JSON_FORMAT: JSON string is invalid.