public Desire2LearnLmsUserService(ILogger logger, LmsUserModel lmsUserModel, IDesire2LearnApiService d2lApiService, ApplicationSettingsProvider settings ) : base(logger) { this.lmsUserModel = lmsUserModel; this.d2lApiService = d2lApiService; this.settings = settings; }
public ContentController( LmsUserSessionModel userSessionModel, Esynctraining.AdobeConnect.IAdobeConnectAccountService acAccountService, ApplicationSettingsProvider settings, ILogger logger, LmsUserModel lmsUserModel) : base(userSessionModel, acAccountService, settings, logger) { _lmsUserModel = lmsUserModel; }
public ContentController( LmsUserModel lmsUserModel, EdugameCloud.Lti.API.AdobeConnect.IAdobeConnectAccountService acAccountService, ApplicationSettingsProvider settings, ILogger logger, ICache cache) : base(acAccountService, settings, logger, cache) { _lmsUserModel = lmsUserModel; }
public RecordingsService(LmsCourseMeetingModel lmsCourseMeetingModel, LmsUserModel lmsUserModel, IAdobeConnectAccountService acAccountService, MeetingSetup meetingSetup, UsersSetup usersSetup, ILogger logger) { this.lmsCourseMeetingModel = lmsCourseMeetingModel; this.lmsUserModel = lmsUserModel; this.acAccountService = acAccountService; this.meetingSetup = meetingSetup; this.logger = logger; this.usersSetup = usersSetup; }
public LtiApiController( LmsUserModel lmsUserModel, MeetingSetup meetingSetup, ApplicationSettingsProvider settings, UsersSetup usersSetup, IAdobeConnectAccountService acAccountService, ILogger logger, ICache cache) : base(acAccountService, settings, logger, cache) { this.lmsUserModel = lmsUserModel; this.meetingSetup = meetingSetup; this.usersSetup = usersSetup; }
public SynchronizationUserService(LmsFactory lmsFactory, AdobeConnect.IAdobeConnectAccountService acAccountService, UsersSetup usersSetup, LmsUserModel lmsUserModel, LmsCompanyModel lmsCompanyModel, ApplicationSettingsProvider settings, LmsCourseMeetingModel lmsCourseMeetingModel, IAdobeConnectUserService acUserService, ILogger logger) { this.lmsFactory = lmsFactory; this.acAccountService = acAccountService; this.usersSetup = usersSetup; this.lmsUserModel = lmsUserModel; this.lmsCompanyModel = lmsCompanyModel; this.lmsCourseMeetingModel = lmsCourseMeetingModel; this.acUserService = acUserService; this.logger = logger; _settings = settings; }
private async Task CreateAnnouncement( LmsMeetingType meetingType, ILmsLicense lmsCompany, ILtiParam param, MeetingDTOInput meetingDto) { if (!lmsCompany.ShowAnnouncements.GetValueOrDefault() || string.IsNullOrEmpty(param.context_title)) { return; } var announcementTitle = string.Format( "A new {0} room was created for course {1}", meetingNames[meetingType], param.context_title); string announcementMessage = GetAnnouncementMessage(meetingType, meetingDto, param.referer); switch (lmsCompany.LmsProviderId) { case (int)LmsProviderEnum.Canvas: var lmsUser = LmsUserModel.GetOneByUserIdAndCompanyLms(param.lms_user_id, lmsCompany.Id).Value; var token = UsersSetup.IsTeacher(param, lmsCompany) && !string.IsNullOrEmpty(lmsUser.Token) ? lmsUser.Token : lmsCompany.AdminUser.Return(a => a.Token, string.Empty); await CanvasApi.CreateAnnouncement( lmsCompany.LmsDomain, token, param.course_id, announcementTitle, announcementMessage); break; case (int)LmsProviderEnum.Blackboard: BlackboardApi.CreateAnnouncement(param.course_id.ToString(), param.lms_user_id, lmsCompany.GetLMSSettings(Settings), announcementTitle, announcementMessage); break; case (int)LmsProviderEnum.AgilixBuzz: // string error; // this.dlapApi.CreateAnnouncement( // credentials, // param.course_id, // announcementTitle, // announcementMessage, // out error); break; } }
/// <summary> /// Initializes a new instance of the <see cref="LmsUserParametersDTOValidator"/> class. /// </summary> /// <param name="lmsUserModel"> /// The LMS User Model. /// </param> public LmsUserParametersDTOValidator(LmsUserModel lmsUserModel) { CascadeMode = CascadeMode.StopOnFirstFailure; RuleFor(model => model.AcId) .NotEmpty() .WithError(Errors.CODE_ERRORTYPE_INVALID_OBJECT, "AC id is empty"); RuleFor(model => model.Domain) .NotEmpty() .WithError(Errors.CODE_ERRORTYPE_INVALID_OBJECT, "Domain is empty"); RuleFor(model => model.provider) .NotEmpty() .WithError(Errors.CODE_ERRORTYPE_INVALID_OBJECT, "Provider is empty"); RuleFor(model => model.WsToken) .NotEmpty() .WithError(Errors.CODE_ERRORTYPE_INVALID_OBJECT, "Wstoken is empty"); RuleFor(model => model.LmsUserId) .Must(x => x == null || x == 0 || lmsUserModel.GetOneById(x.Value).Value != null) .WithError(Errors.CODE_ERRORTYPE_INVALID_OBJECT, "Specified LMS user does not exist"); }
public Desire2LearnLmsUserServiceSync(ILogger logger, LmsUserModel lmsUserModel, IDesire2LearnApiService d2lApiService, ApplicationSettingsProvider settings) : base(logger, lmsUserModel, d2lApiService, settings) { }