예제 #1
0
        public string m_sLang = "en-US";                                                // Languange, defaulting to US english

        public DDocument(DSession i_dsParentSession)
        {
            m_dsParentSession = i_dsParentSession;
            m_DVariables      = new  DVariables();
            m_DProperties     = new DProperties();
            m_DForms          = new DForms();
            m_iActiveForm     = 0;
        }
예제 #2
0
        public DResponse m_ChosenResponse;                                              // DResponse of form completion (ie., 'ok' button, etc.)

        public DForm(DDocument i_ddParentDocument /*DForm i_Parent*/)
        {
            m_ddParentDocument = i_ddParentDocument;
            //m_ParentForm = i_Parent;
            m_DActionsPre  = new DActions();
            m_DFields      = new DFields();
            m_iActiveField = 0;
            m_DVariables   = new DVariables();
            m_DProperties  = new DProperties();
        }
예제 #3
0
        public DSession(int i_iVMC)
        {
            m_iVMC       = i_iVMC;
            m_DVariables = new DVariables();

            // Add default variables
            m_DVariables.Add(new DVariable(eVars.connection_local_uri.ToString(), ""));
            m_DVariables.Add(new DVariable(eVars.connection_remote_uri.ToString(), ""));
            m_DVariables.Add(new DVariable(eVars.connection_remote_displayname.ToString(), ""));
            m_DVariables.Add(new DVariable(eVars.connection_protocol_name.ToString(), ""));
            m_DVariables.Add(new DVariable(eVars.connection_originator.ToString(), ""));
            m_DVariables.Add(new DVariable(eVars.speechbridge_session_id.ToString(), ""));

            m_DProperties = new DProperties();
        }
예제 #4
0
        public DResponse m_Response;                                                            // What the user selected.

        public DField(DForm i_dfParentForm)
        {
            m_dfParentForm     = i_dfParentForm;
            m_sID              = "";
            m_iResponseTimeout = 15;
            m_iFinalIteration  = 1;
            m_iIterationCount  = 0;

            m_DActionsPre    = new DActions();
            m_DActionsPost   = new DActions();
            m_Errors_NoMatch = new DActions();
            m_Errors_NoInput = new DActions();
            m_Options        = new DResponses();
            m_DVariables     = new DVariables();
            m_DProperties    = new DProperties();

            // Add in default field variables
            m_DVariables.Add(new DVariable(eVars.inputmode.ToString(), eInputModes.speech.ToString()));                         // Default to speech
            m_DVariables.Add(new DVariable(eVars.utterance.ToString(), ""));
            m_DVariables.Add(new DVariable(eVars.confidence.ToString(), ""));
        }