/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='publishCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> RemoveSchedulePublishQuizAsync(this IMaterialApi operations, LMSApplicationCoreCommandsMaterialPublishCommand publishCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RemoveSchedulePublishQuizWithHttpMessagesAsync(publishCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='videoId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetVideoDetailsAsync(this IMaterialApi operations, string videoId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetVideoDetailsWithHttpMessagesAsync(videoId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contextLastViewedMaterialCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> RecordLastViewedMaterialAsync(this IMaterialApi operations, LMSApplicationCoreCommandsContextLastViewedMaterialCommand contextLastViewedMaterialCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RecordLastViewedMaterialWithHttpMessagesAsync(contextLastViewedMaterialCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='searchValue'> /// </param> /// <param name='lang'> /// </param> /// <param name='channelId'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetYoutubeSearchResultsAsync(this IMaterialApi operations, string searchValue, string lang, string channelId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetYoutubeSearchResultsWithHttpMessagesAsync(searchValue, lang, channelId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <bool?> GetVideoIsCompletedAsync(this IMaterialApi operations, string materialId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetVideoIsCompletedWithHttpMessagesAsync(materialId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resumeVideoCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> FlagVideoMaterialAsCompletedAsync(this IMaterialApi operations, LMSApplicationCoreCommandsResumeVideoCommand resumeVideoCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.FlagVideoMaterialAsCompletedWithHttpMessagesAsync(resumeVideoCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialId'> /// </param> /// <param name='contextId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetCurrentTimeForVideoMaterialAsync(this IMaterialApi operations, string materialId, string contextId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetCurrentTimeForVideoMaterialWithHttpMessagesAsync(materialId, contextId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contextId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetFinalAssessmentAsync(this IMaterialApi operations, int contextId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetFinalAssessmentWithHttpMessagesAsync(contextId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='activityEditCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetActivityMaterialAsync(this IMaterialApi operations, LMSApplicationCoreCommandsAssessmentActivityEditCommand activityEditCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetActivityMaterialWithHttpMessagesAsync(activityEditCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='copyFileCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> CopyFileAsync(this IMaterialApi operations, LMSApplicationCoreCommandsCopyFileCommand copyFileCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CopyFileWithHttpMessagesAsync(copyFileCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialId'> /// </param> /// <param name='lang'> /// </param> public static bool?GetVideoIsCompleted(this IMaterialApi operations, string materialId, string lang) { return(operations.GetVideoIsCompletedAsync(materialId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialId'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelMaterialDetailsViewModel GetMaterialById(this IMaterialApi operations, string materialId, string lang) { return(operations.GetMaterialByIdAsync(materialId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialId'> /// </param> /// <param name='courseId'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelAssessmentActivityDataViewModel GetFinalAssessmentData(this IMaterialApi operations, string materialId, string courseId, string lang) { return(operations.GetFinalAssessmentDataAsync(materialId, courseId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contextLastViewedMaterialCommand'> /// </param> /// <param name='lang'> /// </param> public static object RecordLastViewedMaterial(this IMaterialApi operations, LMSApplicationCoreCommandsContextLastViewedMaterialCommand contextLastViewedMaterialCommand, string lang) { return(operations.RecordLastViewedMaterialAsync(contextLastViewedMaterialCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contextId'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelMaterialDetailsViewModel GetContextFinalAssessment(this IMaterialApi operations, string contextId, string lang) { return(operations.GetContextFinalAssessmentAsync(contextId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='copyFileCommand'> /// </param> /// <param name='lang'> /// </param> public static string CopyFile(this IMaterialApi operations, LMSApplicationCoreCommandsCopyFileCommand copyFileCommand, string lang) { return(operations.CopyFileAsync(copyFileCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='activityCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSDomainCoreModelsMaterialsMaterial> UpdateActivityDetailsAsync(this IMaterialApi operations, LMSApplicationCoreCommandsUpdateActivityCommand activityCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateActivityDetailsWithHttpMessagesAsync(activityCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='activityCommand'> /// </param> /// <param name='lang'> /// </param> public static LMSDomainCoreModelsMaterialsMaterial UpdateActivityDetails(this IMaterialApi operations, LMSApplicationCoreCommandsUpdateActivityCommand activityCommand, string lang) { return(operations.UpdateActivityDetailsAsync(activityCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialId'> /// </param> /// <param name='courseId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelAssessmentActivityDataViewModel> GetFinalAssessmentDataAsync(this IMaterialApi operations, string materialId, string courseId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetFinalAssessmentDataWithHttpMessagesAsync(materialId, courseId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialId'> /// </param> /// <param name='contextId'> /// </param> /// <param name='lang'> /// </param> public static object GetCurrentTimeForVideoMaterial(this IMaterialApi operations, string materialId, string contextId, string lang) { return(operations.GetCurrentTimeForVideoMaterialAsync(materialId, contextId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialAddCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelMaterialDetailsViewModel> AddFinalAssessmentAsync(this IMaterialApi operations, LMSApplicationCoreCommandsMaterialAddCommand materialAddCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AddFinalAssessmentWithHttpMessagesAsync(materialAddCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialAddCommand'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelMaterialDetailsViewModel AddFinalAssessment(this IMaterialApi operations, LMSApplicationCoreCommandsMaterialAddCommand materialAddCommand, string lang) { return(operations.AddFinalAssessmentAsync(materialAddCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contextId'> /// </param> /// <param name='lang'> /// </param> public static object GetFinalAssessment(this IMaterialApi operations, int contextId, string lang) { return(operations.GetFinalAssessmentAsync(contextId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='publishCommand'> /// </param> /// <param name='lang'> /// </param> public static object RemoveSchedulePublishQuiz(this IMaterialApi operations, LMSApplicationCoreCommandsMaterialPublishCommand publishCommand, string lang) { return(operations.RemoveSchedulePublishQuizAsync(publishCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='activityEditCommand'> /// </param> /// <param name='lang'> /// </param> public static object GetActivityMaterial(this IMaterialApi operations, LMSApplicationCoreCommandsAssessmentActivityEditCommand activityEditCommand, string lang) { return(operations.GetActivityMaterialAsync(activityEditCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelMaterialDetailsViewModel> GetMaterialByIdAsync(this IMaterialApi operations, string materialId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetMaterialByIdWithHttpMessagesAsync(materialId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialContextTypeId'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelMaterialTypeViewModel GetMaterialTypes(this IMaterialApi operations, int materialContextTypeId, string lang) { return(operations.GetMaterialTypesAsync(materialContextTypeId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resumeVideoCommand'> /// </param> /// <param name='lang'> /// </param> public static object FlagVideoMaterialAsCompleted(this IMaterialApi operations, LMSApplicationCoreCommandsResumeVideoCommand resumeVideoCommand, string lang) { return(operations.FlagVideoMaterialAsCompletedAsync(resumeVideoCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resumeVideoCommand'> /// </param> /// <param name='lang'> /// </param> public static object SetCurrentTimeForVideoMaterial(this IMaterialApi operations, LMSApplicationCoreCommandsResumeVideoCommand resumeVideoCommand, string lang) { return(operations.SetCurrentTimeForVideoMaterialAsync(resumeVideoCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='materialOrderCommand'> /// </param> /// <param name='lang'> /// </param> public static IList <LMSApplicationCoreViewModelMaterialDetailsViewModel> SetMaterialsOrder(this IMaterialApi operations, LMSApplicationCoreCommandsMaterialOrderCommand materialOrderCommand, string lang) { return(operations.SetMaterialsOrderAsync(materialOrderCommand, lang).GetAwaiter().GetResult()); }