예제 #1
0
    ContentState CheckContentState(string speechScript)
    {
        if (webSurvey.GetCurrentStep().Equals(0))
        {
            return(ContentState.IceBreaking);
        }

        else if (speechScript.Contains("문제입니다") ||
                 speechScript.Contains("맞으면 오"))
        {
            return(ContentState.Asking);
        }

        else if (speechScript.Contains("맞았습니다") ||
                 speechScript.Contains("틀리셨네요") ||
                 speechScript.Contains("지나버렸네요") ||
                 speechScript.Contains("정답") ||
                 speechScript.Contains("땡") ||
                 speechScript.Contains("초과"))
        {
            return(ContentState.Answering);
        }

        return(ContentState.Waiting);
    }