Example #1
0
        public override cls_YACRSResponse_part startElement(int elementid, Dictionary <string, string> atts, string nsuri, string elementname)
        {
            switch (elementid)
            {
            case YACRSResponse_parser.ID_sessionInfo:
                cls_sessionInfo tmp_sessionInfo = new cls_sessionInfo(this);
                tmp_sessionInfo.parseAttributes(atts);
                m_sessionInfo.Add(tmp_sessionInfo);
                return(tmp_sessionInfo);

            //break;
            case YACRSResponse_parser.ID_questionResponseInfo:
                cls_questionResponseInfo tmp_questionResponseInfo = new cls_questionResponseInfo(this);
                tmp_questionResponseInfo.parseAttributes(atts);
                m_questionResponseInfo.Add(tmp_questionResponseInfo);
                return(tmp_questionResponseInfo);

            //break;
            case YACRSResponse_parser.ID_sessionDetail:
                m_sessionDetail = new cls_sessionDetail(this);
                m_sessionDetail.parseAttributes(atts);
                return(m_sessionDetail);

            //break;
            case YACRSResponse_parser.ID_serverInfo:
                m_serverInfo = new cls_serverInfo(this);
                m_serverInfo.parseAttributes(atts);
                return(m_serverInfo);
                //break;
            }
            return(this);
        }
Example #2
0
 public bool Add_questionResponseInfo(cls_questionResponseInfo n_questionResponseInfo)
 {
     n_questionResponseInfo.setParent(this);
     n_questionResponseInfo.setOwner(__owner);
     m_questionResponseInfo.Add(n_questionResponseInfo);
     return(true);
 }
Example #3
0
        public void StartSession()
        {
            lastQiID = 0;
            // Check if there is an active question
            cls_questionResponseInfo qi = questionInfo(0);

            if ((qi != null) && (qi.M_id > 0))
            {
                lastQiID = qi.M_id;
            }
            else
            {
                lastQiID = 0;
            }
        }