예제 #1
0
        public static string checkAnswer(List <string> _arr)
        {
            DataSet ds = new DataSet();

            SystemObjects.SBObj _sbobj = new SystemObjects.SBObj();

            _sbobj.QuestionID  = Convert.ToInt32(_arr[0].ToString());
            _sbobj.GuestAnswer = _arr[1].ToString();
            try
            {
                ds.Tables.Add(_sbobj.CheckAnswer());
            }
            catch (Exception ex)
            {
            }
            return(ds.GetXml());
        }
예제 #2
0
        public static string checkAnswer(List<string> _arr)
        {
            DataSet ds = new DataSet();
            SystemObjects.SBObj _sbobj = new SystemObjects.SBObj();

            _sbobj.QuestionID = Convert.ToInt32(_arr[0].ToString());
            _sbobj.GuestAnswer = _arr[1].ToString();
            try
            {
                ds.Tables.Add(_sbobj.CheckAnswer());
            }
            catch (Exception ex)
            {

            }
            return ds.GetXml();
        }
예제 #3
0
        public static string disconnectUser(List<string> _arr)
        {
            DataTable dummy = new DataTable();

            SystemObjects.SBObj _sbobj = new SystemObjects.SBObj();
            _sbobj.EID = _arr[0].ToString();
            DataSet ds = new DataSet();
            try
            {
                dummy.Merge(_sbobj.DisconnectUser());
                ds.Tables.Add(dummy);
            }
            catch (Exception ex)
            {

            }
            return ds.GetXml();
        }
예제 #4
0
        public static string checkAnswer(List<string> _arr)
        {
            DataTable dummy = new DataTable();

            SystemObjects.SBObj _sbobj = new SystemObjects.SBObj();
            _sbobj.QuestionID = Convert.ToInt32(_arr[0]);
            _sbobj.GuestAnswer = _arr[1].ToString();
            _sbobj.EID = _arr[2].ToString();
            _sbobj.TimeAnswered = Convert.ToDecimal(_arr[3].ToString());
            DataSet ds = new DataSet();
            try
            {
                dummy.Merge(_sbobj.CheckAnswer());
                ds.Tables.Add(dummy);
            }
            catch (Exception ex)
            {

            }
            return ds.GetXml();
        }
예제 #5
0
        public static string loadScore(List<string> _arr)
        {
            DataTable dummy = new DataTable();

            SystemObjects.SBObj _sbobj = new SystemObjects.SBObj();
            _sbobj.EID = _arr[0];
            DataSet ds = new DataSet();
            try
            {
                dummy.Merge(_sbobj.LoadScore());
                ds.Tables.Add(dummy);
            }
            catch (Exception ex)
            {

            }
            return ds.GetXml();
        }
예제 #6
0
        public static string checkQuizStatus(List<string> _arr)
        {
            DataTable dummy = new DataTable();

            SystemObjects.SBObj _sbobj = new SystemObjects.SBObj();
            _sbobj.QuestionID = Convert.ToInt32(_arr[0]);
            DataSet ds = new DataSet();
            try
            {
                dummy.Merge(_sbobj.CheckQuizStatus());
                ds.Tables.Add(dummy);
            }
            catch (Exception ex)
            {

            }
            return ds.GetXml();
        }
예제 #7
0
        public static string checkifQuizBeeStatusisActive(List<string> _arr)
        {
            DataTable dummy = new DataTable();

            SystemObjects.SBObj _sbobj = new SystemObjects.SBObj();
            _sbobj.EID = _arr[0].ToString();
            DataSet ds = new DataSet();
            try
            {
                dummy.Merge(_sbobj.CheckifQuizBeeStatusisActive());
                ds.Tables.Add(dummy);
            }
            catch (Exception ex)
            {

            }
            return ds.GetXml();
        }