Assets/Watson/Scripts/Services/DeepQA/DeepQA.cs
/// <summary>
/// Find a question in the question cache.
/// </summary>
/// <param name="questionId"></param>
/// <returns></returns>
Find a question in the question cache.
Find a question in the question cache .
public Question FindQuestion(string questionId)
        {
            if (m_QuestionCache == null)
                m_QuestionCache = new DataCache(m_ServiceId);
            byte[] cachedQuestion = m_QuestionCache.Find(questionId);
            if (cachedQuestion != null)
            {
                Response response = ProcessAskResp(cachedQuestion);
                if (response != null)
                {
                    response.question.questionId = questionId;
                    return response.question;
                }
            }
            return null;
        }
public Question FindQuestion ( string questionId ) { if ( m_QuestionCache == null ) m_QuestionCache = new DataCache ( m_ServiceId ) ; byte [ ] cachedQuestion = m_QuestionCache . Find ( questionId ) ; if ( cachedQuestion != null ) { Response response = ProcessAskResp ( cachedQuestion ) ; if ( response != null ) { response . question . questionId = questionId ; return response . question ; } } return null ; }
Find a question in the question cache.
Find a question in the question cache .
None
questionId
string
None