예제 #1
0
파일: Slide.cs 프로젝트: Griboedoff/Ulearn
        private static IEnumerable <Vertical> QuizToVerticals(string courseId, QuizSlide slide, string slideUrl, string ltiId)
        {
            var ltiComponent =
                new LtiComponent(slide.Title, slide.NormalizedGuid + "-quiz", string.Format(slideUrl, courseId, slide.Id), ltiId, true, slide.MaxScore, false);

            yield return(new Vertical(slide.NormalizedGuid, slide.Title, new Component[] { ltiComponent }, EdxScoringGroupsHack.ToEdxName(slide.ScoringGroup), slide.MaxScore));
        }
예제 #2
0
        private static IEnumerable <Vertical> QuizToVerticals(string courseId, QuizSlide slide, string slideUrl, string ltiId)
        {
            var ltiComponent =
                new LtiComponent(slide.Title, slide.Guid + "-quiz", string.Format(slideUrl, courseId, slide.Index), ltiId, true, slide.MaxScore, false);

            yield return(new Vertical(slide.Guid, slide.Title, new Component[] { ltiComponent }));
        }
예제 #3
0
 public override Component LoadComponent(string folderName, string urlName, EdxLoadOptions options)
 {
     return(LtiComponent.Load(folderName, urlName, options));
 }
예제 #4
0
 public override Component GetComponent(string folderName, string urlName)
 {
     return(LtiComponent.Load(folderName, urlName));
 }