Beispiel #1
0
        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));
        }
Beispiel #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 }));
        }
Beispiel #3
0
 public override Component LoadComponent(string folderName, string urlName, EdxLoadOptions options)
 {
     return(LtiComponent.Load(folderName, urlName, options));
 }
Beispiel #4
0
 public override Component GetComponent(string folderName, string urlName)
 {
     return(LtiComponent.Load(folderName, urlName));
 }