Esempio n. 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);
        }
Esempio n. 2
0
 public cls_data(cls_YACRSResponse_part parent)
 {
     __parent = parent;
     if (__parent == null)
     {
         __owner = null;
     }
     else
     {
         __owner = __parent.getOwner();
     }
     m_sessionInfo          = new List <cls_sessionInfo>();
     m_questionResponseInfo = new List <cls_questionResponseInfo>();
     m_sessionDetail        = null;
     m_serverInfo           = null;
     m_qid = new List <int>();
 }