/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deletePostCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> DeletePostAsync(this IWallApi operations, LMSApplicationCoreCommandsDeletePostCommand deletePostCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeletePostWithHttpMessagesAsync(deletePostCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public QuestionFlow(IContextProvider contextProvider) { _wallApi = new WallApi(contextProvider); _productsApi = new ProductsApi(contextProvider); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { AlbumApi = new AlbumApi(this); AnmmarApi = new AnmmarApi(this); AnnouncementApi = new AnnouncementApi(this); AssessmentsMessages = new AssessmentsMessages(this); AttendanceApi = new AttendanceApi(this); AuthorizationApi = new AuthorizationApi(this); BadgeApi = new BadgeApi(this); BehaviourApi = new BehaviourApi(this); CalendarApi = new CalendarApi(this); CertificateApi = new CertificateApi(this); ClassApi = new ClassApi(this); ConfigurationMangerApi = new ConfigurationMangerApi(this); CopyApi = new CopyApi(this); CourseApi = new CourseApi(this); CourseCatalogueApi = new CourseCatalogueApi(this); CourseGroupAuthors = new CourseGroupAuthors(this); CourseImageApi = new CourseImageApi(this); CourseRequestsApi = new CourseRequestsApi(this); CoursesProgress = new CoursesProgress(this); DiscussionApi = new DiscussionApi(this); EduShareApi = new EduShareApi(this); EvaluationApi = new EvaluationApi(this); EventApi = new EventApi(this); FileApi = new FileApi(this); FormsTemplatesApi = new FormsTemplatesApi(this); GradeApi = new GradeApi(this); GradeBookApi = new GradeBookApi(this); HelpApi = new HelpApi(this); IenApi = new IenApi(this); InvitationApi = new InvitationApi(this); InviteApi = new InviteApi(this); LanguageApi = new LanguageApi(this); LearningObjectivesApi = new LearningObjectivesApi(this); LearningPathApi = new LearningPathApi(this); LTILMSConsumerApi = new LTILMSConsumerApi(this); MaterialApi = new MaterialApi(this); MaterialSeenByUser = new MaterialSeenByUser(this); MembersApi = new MembersApi(this); MentorApi = new MentorApi(this); NotificationsApi = new NotificationsApi(this); OfferApi = new OfferApi(this); Office365 = new Office365(this); OfficeAddInApi = new OfficeAddInApi(this); Onenote = new Onenote(this); OrganizationUserAPI = new OrganizationUserAPI(this); OutcomesApi = new OutcomesApi(this); PointsApi = new PointsApi(this); PollApi = new PollApi(this); PrerequisitesApi = new PrerequisitesApi(this); QtiInteroperability = new QtiInteroperability(this); QuestionBankApi = new QuestionBankApi(this); ReflectionApi = new ReflectionApi(this); RelatedCoursesApi = new RelatedCoursesApi(this); ReportApi = new ReportApi(this); RoleManagementApi = new RoleManagementApi(this); ScheduleVisitApi = new ScheduleVisitApi(this); SchoolTypeApi = new SchoolTypeApi(this); SessionApi = new SessionApi(this); SpaceApi = new SpaceApi(this); StudentApi = new StudentApi(this); SubjectApi = new SubjectApi(this); SystemAdministrationApi = new SystemAdministrationApi(this); SystemReportsApi = new SystemReportsApi(this); TagsApi = new TagsApi(this); Themes = new Themes(this); TimeTableApi = new TimeTableApi(this); ToolConsumerProfileApi = new ToolConsumerProfileApi(this); TourApi = new TourApi(this); TrackApi = new TrackApi(this); TrainingPlanApi = new TrainingPlanApi(this); UserApi = new UserApi(this); UserProfileApi = new UserProfileApi(this); UserProgressApi = new UserProgressApi(this); UserSettingsApi = new UserSettingsApi(this); WallApi = new WallApi(this); BaseUri = new System.Uri("https://xwinji.azurewebsites.net"); SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='wallPostEditCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelPostViewModel> UpdatePostAsync(this IWallApi operations, LMSApplicationCoreCommandsWallPostEditCommand wallPostEditCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdatePostWithHttpMessagesAsync(wallPostEditCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deletePostCommand'> /// </param> /// <param name='lang'> /// </param> public static string DeletePost(this IWallApi operations, LMSApplicationCoreCommandsDeletePostCommand deletePostCommand, string lang) { return(operations.DeletePostAsync(deletePostCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='editCommentCommand'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelCommentViewModel EditComment(this IWallApi operations, LMSApplicationCoreCommandsEditCommentCommand editCommentCommand, string lang) { return(operations.EditCommentAsync(editCommentCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='wallPostEditCommand'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelPostViewModel UpdatePost(this IWallApi operations, LMSApplicationCoreCommandsWallPostEditCommand wallPostEditCommand, string lang) { return(operations.UpdatePostAsync(wallPostEditCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='postCommentAddCommand'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelCommentViewModel AddComment(this IWallApi operations, LMSApplicationCoreCommandsPostCommentAddCommand postCommentAddCommand, string lang) { return(operations.AddCommentAsync(postCommentAddCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='postId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelPostCommentsViewModel> GetPostCommentsAsync(this IWallApi operations, string postId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPostCommentsWithHttpMessagesAsync(postId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='postId'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelPostCommentsViewModel GetPostComments(this IWallApi operations, string postId, string lang) { return(operations.GetPostCommentsAsync(postId, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contextId'> /// </param> /// <param name='contextTypeId'> /// </param> /// <param name='lang'> /// </param> /// <param name='count'> /// </param> /// <param name='includeReflections'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelPostsListViewModel> GetPostsByContextIdAsync(this IWallApi operations, string contextId, int contextTypeId, string lang, int?count = default(int?), bool?includeReflections = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPostsByContextIdWithHttpMessagesAsync(contextId, contextTypeId, lang, count, includeReflections, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contextId'> /// </param> /// <param name='contextTypeId'> /// </param> /// <param name='lang'> /// </param> /// <param name='count'> /// </param> /// <param name='includeReflections'> /// </param> public static LMSApplicationCoreViewModelPostsListViewModel GetPostsByContextId(this IWallApi operations, string contextId, int contextTypeId, string lang, int?count = default(int?), bool?includeReflections = default(bool?)) { return(operations.GetPostsByContextIdAsync(contextId, contextTypeId, lang, count, includeReflections).GetAwaiter().GetResult()); }