public BlockRenderContext(Course course, Slide slide, string baseUrl, dynamic[] blockData,
                           bool isGuest = false, bool revealHidden = false, AbstractManualSlideChecking manualChecking = null,
                           int manualCheckingsLeftInQueue = 0, bool canUserFillQuiz = false, List <string> groupsIds   = null, bool isLti = false, bool autoplay = false,
                           bool isManualCheckingReadonly  = false, bool defaultProhibitFurtherReview = true, Dictionary <string, int> userScores = null)
 {
     if (blockData.Length != slide.Blocks.Length)
     {
         throw new ArgumentException("BlockRenderContext(): BlockData.Length should be slide.Blocks.Length");
     }
     Course                       = course;
     Slide                        = slide;
     BaseUrl                      = baseUrl;
     BlockData                    = blockData;
     IsGuest                      = isGuest;
     RevealHidden                 = revealHidden;
     ManualChecking               = manualChecking;
     ManualCheckingsLeftInQueue   = manualCheckingsLeftInQueue;
     CanUserFillQuiz              = canUserFillQuiz;
     GroupsIds                    = groupsIds;
     IsLti                        = isLti;
     Autoplay                     = autoplay;
     IsManualCheckingReadonly     = isManualCheckingReadonly;
     DefaultProhibitFurtherReview = defaultProhibitFurtherReview;
     UserScores                   = userScores ?? new Dictionary <string, int>();
 }
		public BlockRenderContext(Course course, Slide slide, string baseUrl, dynamic[] blockData, bool isGuest = false, bool revealHidden = false, AbstractManualSlideChecking manualChecking = null, bool canUserFillQuiz = false, int? groupId = null, bool isLti = false)
		{
			if (blockData.Length != slide.Blocks.Length)
				throw new ArgumentException("BlockData.Length should be slide.Blocks.Length");
			Course = course;
			Slide = slide;
			BaseUrl = baseUrl;
			BlockData = blockData;
			IsGuest = isGuest;
			RevealHidden = revealHidden;
			ManualChecking = manualChecking;
			CanUserFillQuiz = canUserFillQuiz;
			GroupId = groupId;
			IsLti = isLti;
		}
Beispiel #3
0
 public BlockRenderContext(Course course, Slide slide, string baseUrl, dynamic[] blockData, bool isGuest = false, bool revealHidden = false, AbstractManualSlideChecking manualChecking = null, bool canUserFillQuiz = false, List <string> groupsIds = null, bool isLti = false, bool autoplay = false, bool isManualCheckingReadonly = false)
 {
     if (blockData.Length != slide.Blocks.Length)
     {
         throw new ArgumentException("BlockData.Length should be slide.Blocks.Length");
     }
     Course                   = course;
     Slide                    = slide;
     BaseUrl                  = baseUrl;
     BlockData                = blockData;
     IsGuest                  = isGuest;
     RevealHidden             = revealHidden;
     ManualChecking           = manualChecking;
     CanUserFillQuiz          = canUserFillQuiz;
     GroupsIds                = groupsIds;
     IsLti                    = isLti;
     Autoplay                 = autoplay;
     IsManualCheckingReadonly = isManualCheckingReadonly;
 }