Speech2TextPrototype/Services/LookupTableService.cs
/// <summary>
/// Sends error codes to qnamaker and then the qnamaker sends helpful messages to the user
/// </summary>
/// <param name="queryResult">The data returned from the TData table</param>
/// <param name="listMeasures">A list of measures to display (sales)</param>
/// <returns>Custom error code string for the qnamaker</returns>
Sends error codes to qnamaker and then the qnamaker sends helpful messages to the user
Sends error codes to qnamaker and then the qnamaker sends helpful messages to the user
private string HandleErrors(SqlAnswer sqlAnswer)
        {
            int listMeasuresLen = sqlAnswer.measures.Count();
            double scalar = sqlAnswer.scalar;
            if (listMeasuresLen == 0)
            {
                return "ERROR:No List Measures";
            }
            return string.Empty;
        }
private string HandleErrors ( SqlAnswer sqlAnswer ) { int listMeasuresLen = sqlAnswer . measures . Count ( ) ; double scalar = sqlAnswer . scalar ; if ( listMeasuresLen == 0 ) { return " " ; } return string . Empty ; }
Sends error codes to qnamaker and then the qnamaker sends helpful messages to the user
Sends error codes to qnamaker and then the qnamaker sends helpful messages to the user
Custom error code string for the qnamaker
Custom error code string for the qnamaker
sqlAnswer
SqlAnswer
queryResult
The data returned from the TData table
The data returned from the TData table
listMeasures
A list of measures to display (sales)
A list of measures to display ( sales )