Esempio n. 1
0
        /// <summary>
        /// 初始化用户信息
        /// </summary>
        /// <param name="uid"></param>
        public RequestSchool(string uid, string classId, string studentId)
        {
            var userInfo = new User_info(uid);

            this.schoolId  = userInfo.schoolid;
            this.userId    = userInfo.uid;
            this.adParams  = new AdParams(uid);
            this.classId   = classId;
            this.studentId = studentId;
        }
Esempio n. 2
0
        /// <summary>
        /// 构造消息发送
        /// </summary>
        /// <param name="taskType"></param>
        public RequestTask(TaskType taskType, string uid, Students student)
        {
            var userInfo = new User_info(uid);

            this.schoolId   = userInfo.schoolid;
            this.userId     = userInfo.uid;
            this.actionType = taskType.GetHashCode();
            this.taskNumber = taskType.GetFieldDescription();
            this.classId    = student.ClassId;
            this.studentId  = student.StudentId;
        }