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