Esempio n. 1
0
            public static IList <StudentInfo> GetDownloadData(string gardenID, int rev, out DownloadLog log)
            {
                log = null;
                var result = Student.GetStudentList(gardenID, rev);
                var list   = new List <StudentInfo>();

                if (!string.IsNullOrEmpty(result))
                {
                    log     = JsonConvert.DeserializeObject <DownloadLog>(result);
                    log.Raw = result;
                    if (log != null)
                    {
                        if (log.result != null && log.result.list != null)
                        {
                            foreach (var student in log.result.list)
                            {
                                list.Add(StudentInfo.CheckAndGet(student));
                            }
                        }
                    }
                }
                return(list);
            }