Function GenieDialog_query¶
Defined in File GenieDialog.h
Function Documentation¶
-
Genie_Status_t GenieDialog_query(const GenieDialog_Handle_t dialogHandle, const char *queryStr, const GenieDialog_SentenceCode_t sentenceCode, const GenieDialog_QueryCallback_t callback, const void *userData)¶
A function to execute a query.
- Parameters
dialogHandle – [in] A dialog handle.
queryStr – [in] The input query.
sentenceCode – [in] The sentence code indicating the contents of the queryStr.
callback – [in] Callback function to handle query responses. Cannot be NULL.
userData – [in] User defined field provided in the query responses. Can be NULL.
- Returns
Status code:
GENIE_STATUS_SUCCESS: API call was successful.
GENIE_STATUS_ERROR_INVALID_HANDLE: Dialog handle is invalid.
GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.
GENIE_STATUS_ERROR_QUERY_FAILED: Dialog query failure.
GENIE_STATUS_WARNING_CONTEXT_EXCEEDED: Context Limit was exceeded.