コード例 #1
0
 //Get Course Quota Details
 public BbCourseQuotaDetails GetCourseQuotaDetails(string courseid, bool headerdesc, bool headerdescspecified)
 {
     try
     {
         var results = bbCourse.getCourseQuotaDetails(bbPassword, courseid, headerdesc, headerdescspecified);
         return(BlackBoardWebServices.ConvertStringArrayToObjectDefinition <BbCourseQuotaDetails>(results[0].item, results[1].item));
     }
     catch (Exception ex)
     {
         BlackBoardWebServices.LogError("BbCourse.GetCourseQuotaDetails", ex);
         return(null);
     }
 }
コード例 #2
0
        //Get User Details
        public EnrolledUserDetails GetUserDetails(string userid, bool extendeddetails, bool extendeddetailsspecified, bool headerdesc, bool headerdescspecified)
        {
            try
            {
                var results = bbUser.getUserDetails(bbPassword, userid,
                                                    extendeddetails, extendeddetailsspecified, headerdesc, headerdescspecified);

                return(BlackBoardWebServices.ConvertStringArrayToObjectDefinition <EnrolledUserDetails>(results[0].item, results[1].item));
            }
            catch (Exception ex)
            {
                BlackBoardWebServices.LogError("bbUser.GetUserDetails", ex);
                return(null);
            }
        }
コード例 #3
0
        //Get Course Details
        public BbCourseDetails GetCourseDetails(string courseid, bool extendeddetails,
                                                bool extendeddetailsspecified, bool headerdesc, bool headerdescspecified)
        {
            try
            {
                var data = bbCourse.getCourseDetails(bbPassword, courseid, extendeddetails,
                                                     extendeddetailsspecified, headerdesc, headerdescspecified);

                return(BlackBoardWebServices.ConvertStringArrayToObjectDefinition <BbCourseDetails>(data[0].item, data[1].item));
            }
            catch (Exception ex)
            {
                BlackBoardWebServices.LogError("BbCourse.GetCourseDetails", ex);
                return(null);
            }
        }
コード例 #4
0
        //Get Enrolled Courses For Given User
        public List <EnrolledCourseDetails> GetEnrolledCoursesForGivenUser(string userid, bool headerdesc, bool headerdescspecified)
        {
            try
            {
                var results = bbCourse.getEnrolledCoursesForGivenUser(bbPassword, userid, headerdesc, headerdescspecified);
                List <EnrolledCourseDetails> list = new List <EnrolledCourseDetails>();

                for (int i = 1; i < results.Length; i++)
                {
                    var data = BlackBoardWebServices.ConvertStringArrayToObjectDefinition <EnrolledCourseDetails>(results[0].item, results[i].item);
                    list.Add(data);
                }

                return(list);
            }
            catch (Exception ex)
            {
                BlackBoardWebServices.LogError("BbCourse.GetEnrolledCoursesForGivenUser", ex);
                return(null);
            }
        }
コード例 #5
0
        //Get Secondary System Roles For Given UserID
        public List <RoleDefinition> GetSecondarySystemRolesForGivenUserID(string userid, bool headerdesc, bool headerdescspecified)
        {
            try
            {
                var results = bbUser.getSecondarySystemRolesForGivenUserId(bbPassword, userid, headerdesc, headerdescspecified);
                List <RoleDefinition> list = new List <RoleDefinition>();

                for (int i = 1; i < results.Length; i++)
                {
                    var data = BlackBoardWebServices.ConvertStringArrayToObjectDefinition <RoleDefinition>(results[0].item, results[i].item);
                    list.Add(data);
                }

                return(list);
            }
            catch (Exception ex)
            {
                BlackBoardWebServices.LogError("bbUser.GetSecondarySystemRolesForGivenUserID", ex);
                return(null);
            }
        }
コード例 #6
0
        //Get All Line Items For CourseID
        public List <GradebookDetails> GetAllLineItemsForCourseID(string courseid, bool headerdesc, bool headerdescspecified)
        {
            try
            {
                var results = bbGradebook.getAllLineItemsForCourseId(bbPassword, courseid, headerdesc, headerdescspecified);

                List <GradebookDetails> list = new List <GradebookDetails>();

                for (int i = 1; i < results.Length; i++)
                {
                    var data = BlackBoardWebServices.ConvertStringArrayToObjectDefinition <GradebookDetails>(results[0].item, results[i].item);
                    list.Add(data);
                }

                return(list);
            }
            catch (Exception ex)
            {
                BlackBoardWebServices.LogError("bbGradebook.GetAllLineItemsForCourseID", ex);
                return(null);
            }
        }